**************************************************************************************************************
********************REPLICATION FILE FOR GENERATING TABLES AND APPX TABLES FOR********************************
*** CH KNUTSEN (2015): REINVESTIGATING THE RECIPROCAL RELATIONSHIP BETWEEN DEMOCRACY AND INCOME INEQUALITY ***
********************* REVIEW OF ECONOMICS AND INSTITUTIONS 6(2): ARTICLE 1 ***********************************
**************************************************************************************************************

** FOR INFORMATION/CODE ON VARIABLE CONSTRUCTION/MERGING OF DATASETS/IMPUTATION MODEL PLEASE CONTACT AUTHOR **

************Open up dataset with 1-year panels***************
use "C:\Users\carlhk\Dropbox\Carl_Selemon\Replication_Democracy_Inequality_1_year_panel.dta", clear
xtset gwno year
sort gwno year


*****************************************************
*********** GENERATING TABLES FOR PAPER *************
*****************************************************

**************************
**** Generate Table 1 ****
**************************

summarize wageshare solt_ginmar solt_ginet utip_ehii wdi_gini Gini_cal2 Top1incomeshare, detail

**************************
**** Generate Table 2 ****
**************************
pwcorr wageshare solt_ginet solt_ginmar utip_ehii wdi_gini Gini_cal2 Top1incomeshare, obs

**************************
**** Generate Table 3 ****
**************************

xtpcse l1npolity2 nwageshare lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration, correlation(psar1) hetonly pairwise
estimates store oa
xtpcse  l1npolity2 nwageshare lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, correlation(psar1) hetonly pairwise
estimates store ob
xtpcse l1npolity2 nwageshare lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration al_ethnic easteursov africass asiapac mideanafr latam britishameric french portugese spanish belgian _Iyear*, correlation(psar1) hetonly pairwise
estimates store oc
xtreg l1npolity2 nwageshare lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, fe cluster(gwno)
estimates store od
xtpcse l1nwageshare npolity2 lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration, correlation(psar1) hetonly pairwise
estimates store oe
xtpcse  l1nwageshare npolity2 lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, correlation(psar1) hetonly pairwise
estimates store of
xtpcse l1nwageshare npolity2 lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration al_ethnic easteursov africass asiapac mideanafr latam britishameric french portugese spanish belgian _Iyear*, correlation(psar1) hetonly pairwise
estimates store og
xtreg l1nwageshare npolity2 lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, fe cluster(gwno)
estimates store oh
estout  oa oc od oe og oh, cells(b(star fmt(%9.3f)) t(par fmt(%9.2f))) starlevels (* 0.10 ** 0.05 *** 0.01) stats (N)style (tex)

*********************************************
**** Generate Table 4 (Democracy Models) ****
*********************************************

**
** Notes in green designate which models they correspond to in the online appendix
**

**Model 4 and 9 Table A.4
xtabond2  l1npolity2 nwageshare npolity2 l.npolity2  lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(nwageshare, lag (3 3)) iv(_Iyear* lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration) noleveleq robust  artests(3)
estimates store t1
xtabond2  l1npolity2 nwageshare npolity2 l.npolity2  lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(nwageshare, lag (3 3)) iv(_Iyear* lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration) robust artests(3)
estimates store t2
save "C:\Users\carlhk\Dropbox\Carl_Selemon\Replication_Democracy_Inequality_1_year_panel.dta", replace
use "C:\Users\carlhk\Dropbox\Carl_Selemon\Replication_Democracy_Inequality_5_year_panel.dta", clear
*Models 4,6,10, Table A.6
xtabond2 l1M_npolity2 M_npolity2 l.M_npolity2 M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare) iv(M_npolity2 l.M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) noleveleq robust  artests(3)
estimates store t3
xtabond2 l1M_npolity2 M_npolity2 l.M_npolity2 M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_npolity2 l.M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration , lag (3 5)) iv(_Iperiod_*) noleveleq robust  artests(3)
estimates store t4
xtabond2 l1M_npolity2 M_npolity2 l.M_npolity2 M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare) iv(M_npolity2 l.M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) robust  artests(3)
estimates store t5
*Models 1, 7 Table A.8
xtabond2 l1M_npolity2 M_npolity2 M_nwageshare M_bl_asy25f M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare) iv(M_lnmad_gdpc M_npolity2 M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) noleveleq robust
estimates store t6
xtabond2 l1M_npolity2 M_npolity2 M_nwageshare M_bl_asy25f M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare) iv(M_lnmad_gdpc M_npolity2 M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) robust
estimates store t7
**Models nr 6 in appx tables using three different ginis
xtabond2 l1M_npolity2 M_npolity2 M_solt_ginmar M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_solt_ginmar) iv(M_lnmad_gdpc M_npolity2 M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) robust
estimates store t8
*xtabond2 l1M_npolity2 M_npolity2 M_solt_ginet M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_solt_ginet) iv(M_lnmad_gdpc M_npolity2 M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) robust
*estimates store t9
xtabond2 l1M_npolity2 M_npolity2 M_Gini_rep2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_Gini_rep2) iv(M_lnmad_gdpc M_npolity2 M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) robust
estimates store t10
save "C:\Users\carlhk\Dropbox\Carl_Selemon\Replication_Democracy_Inequality_5_year_panel.dta", replace
use "C:\Users\carlhk\Dropbox\Carl_Selemon\Replication_Democracy_Inequality_Imputed_1_year_panel.dta", clear
mi estimate, post cmdok: xtabond2  l1npolity2 nwageshare npolity lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(nwageshare, lag (2 2)) iv(_Iyear* lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration) noleveleq  robust
estimates store t11
mi estimate, post cmdok: xtabond2  l1npolity2 nwageshare npolity2 l.npolity2  lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(nwageshare, lag (3 3)) iv(_Iyear* lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration) noleveleq   robust
estimates store t12
mi estimate, post cmdok: xtabond2  l1npolity2 nwageshare npolity2 l.npolity2  lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(nwageshare, lag (3 3)) iv(_Iyear* lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration)  robust
estimates store t13
save "C:\Users\carlhk\Dropbox\Carl_Selemon\Replication_Democracy_Inequality_Imputed_1_year_panel.dta", replace
use "C:\Users\carlhk\Dropbox\Carl_Selemon\Replication_Democracy_Inequality_Imputed_5_year_panel.dta", clear
xtabond2 l1M_npolity2 M_nwageshare M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, lag (3 5)) iv(_Iperiod_*) noleveleq robust
estimates store t14
xtabond2 l1M_npolity2 M_nwageshare M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, lag (3 5)) iv(_Iperiod_*) robust
estimates store t15
save "C:\Users\carlhk\Dropbox\Carl_Selemon\Replication_Democracy_Inequality_Imputed_5_year_panel.dta", replace
estout  t1 t2 t3 t4 t5 t6 t7 t8 t10 t11 t12 t13 t14 t15, cells(b(star fmt(%9.3f)) t(par fmt(%9.2f))) starlevels (* 0.10 ** 0.05 *** 0.01) stats (N j)style (tex)


**********************************************
**** Generate Table 5 (Inequality Models) ****
**********************************************

use "C:\Users\carlhk\Dropbox\Carl_Selemon\Replication_Democracy_Inequality_1_year_panel.dta", clear
**Models 1,4,5 FE2SLS table
xtivreg2 l1nwageshare lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear* (npolity2 = inreversewave rprincept), fe first i(gwno)
estimates store t1a
xtivreg2 l1nwageshare lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear* (uds_mean = inreversewave rprincept), fe first i(gwno)
estimates store t2a
xtivreg2 l1nsolt_ginet lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear* (npolity2 = inreversewave rprincept), fe first i(gwno)
estimates store t3a
*Models 2, 7 Table A.19
xtabond2  l1nwageshare npolity2 nwageshare lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(npolity2, lag (2 2)) iv(_Iyear* lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration) noleveleq  robust
estimates store t4a 
xtabond2  l1nwageshare npolity2 nwageshare lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(npolity2, lag (2 2)) iv(_Iyear* lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration) robust
estimates store t5a
save "C:\Users\carlhk\Dropbox\Carl_Selemon\Replication_Democracy_Inequality_1_year_panel.dta", replace
use "C:\Users\carlhk\Dropbox\Carl_Selemon\Replication_Democracy_Inequality_5_year_panel.dta", clear
*Models 4,6,10 Table A.21
xtabond2 l1M_nwageshare M_npolity2 M_nwageshare l.M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_npolity2) iv(M_nwageshare l.M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) noleveleq robust artests(3)
estimates store t6a
xtabond2 l1M_nwageshare M_npolity2 M_nwageshare l.M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_npolity2 M_nwageshare l.M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration , lag (3 5)) iv(_Iperiod_*) noleveleq robust artests(3)
estimates store t7a
xtabond2 l1M_nwageshare M_npolity2 M_nwageshare l.M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_npolity2) iv(M_nwageshare l.M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) robust artests(3)
estimates store t8a
*Model 4, Table A.23
xtabond2 l1M_nwageshare M_npolity2 M_nwageshare l.M_nwageshare M_lnmad_gdpc M_bl_asy25mf M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_npolity2) iv(M_nwageshare l.M_nwageshare M_lnmad_gdpc M_bl_asy25mf M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) noleveleq robust artests(3)
estimates store t9a
**Model 10 solt gini disp income model 4 A.28
xtabond2 l1M_solt_ginet M_npolity2 M_solt_ginet l.M_solt_ginet M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_npolity2) iv(M_solt_ginet l.M_solt_ginet M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) noleveleq robust artests(3)
estimates store t10a
save "C:\Users\carlhk\Dropbox\Carl_Selemon\Replication_Democracy_Inequality_5_year_panel.dta", replace
use "C:\Users\carlhk\Dropbox\Carl_Selemon\Replication_Democracy_Inequality_Imputed_1_year_panel.dta", clear
*Models 4 and 10 A.39
mi estimate, post cmdok: xtabond2  l1nwageshare npolity2 nwageshare lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(npolity2, lag (2 2)) iv(_Iyear* lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration) noleveleq  robust
estimates store t11a
mi estimate, post cmdok: xtabond2  l1nwageshare npolity2 nwageshare lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(npolity2, lag (2 2)) iv(_Iyear* lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration) robust
estimates store t12a
save "C:\Users\carlhk\Dropbox\Carl_Selemon\Replication_Democracy_Inequality_Imputed_1_year_panel.dta", replace
use "C:\Users\carlhk\Dropbox\Carl_Selemon\Replication_Democracy_Inequality_Imputed_5_year_panel.dta", clear
*Models 2 and 7 A.37
xtabond2 l1M_nwageshare M_npolity2 M_nwageshare l.M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_npolity2) iv(M_nwageshare l.M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) noleveleq robust artests(3)
estimates store t13a
xtabond2 l1M_nwageshare M_npolity2 M_nwageshare l.M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_npolity2) iv(M_nwageshare l.M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) robust artests(3)
estimates store t14a
save "C:\Users\carlhk\Dropbox\Carl_Selemon\Replication_Democracy_Inequality_Imputed_5_year_panel.dta", replace
estout  t1a t2a t3a t4a t5a t6a t7a t8a t9a t10a t11a t12a t13a t14a, cells(b(star fmt(%9.3f)) t(par fmt(%9.2f))) starlevels (* 0.10 ** 0.05 *** 0.01) stats (N j)style (tex)



**********************************
**********************************
**** GENERATE APPENDIX TABLES ****
**********************************
**********************************

**********************
**** APPENDIX A.1 ****
**********************

use "C:\Users\carlhk\Dropbox\Carl_Selemon\Replication_Democracy_Inequality_1_year_panel.dta", clear

****************************
**** Generate Table A.1 ****
****************************
summarize npolity2 sip fhi uds_mean chga_demo, detail

****************************
**** Generate Table A.2 ****
****************************
pwcorr npolity2 sip fhi uds_mean chga_demo, obs

****************************
**** Generate Table A.3 ****
****************************
xtpcse l1npolity2 nwageshare lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration, correlation(psar1) hetonly pairwise
estimates store oa
summarize nwageshare npolity2 lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration if _est_oa==1, detail

****************************
**** Generate Table A.5 ****
****************************
** The table note is wrong; it should say: "The statistics are reported for the 3011 observations entering Model AII in Table 3."
xtpcse l1npolity2 nwageshare lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration al_ethnic easteursov africass asiapac mideanafr latam britishameric french portugese spanish belgian _Iyear*, correlation(psar1) hetonly pairwise
estimates store oc
pwcorr l1npolity2 nwageshare lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration al_ethnic if _est_oc==1, obs
save "C:\Users\carlhk\Dropbox\Carl_Selemon\Replication_Democracy_Inequality_1_year_panel.dta", replace

**********************
**** APPENDIX A.2 ****
**********************

use "C:\Users\carlhk\Dropbox\Carl_Selemon\Replication_Democracy_Inequality_5_year_panel.dta", clear

****************************
**** Generate Table A.6 ****
****************************
xtpcse l1M_npolity2 M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, correlation(psar1) hetonly pairwise
estimates store oa5
xtpcse  l1M_npolity2 M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod*, correlation(psar1) hetonly pairwise
estimates store ob5
xtpcse l1M_npolity2 M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration M_al_ethnic M_easteursov M_africass M_asiapac M_mideanafr M_latam M_britishameric M_french M_portugese M_spanish M_belgian _Iperiod*, correlation(psar1) hetonly pairwise
estimates store oc5
xtreg l1M_npolity2 M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod*, fe cluster(gwno)
estimates store od5
xtpcse l1M_nwageshare M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, correlation(psar1) hetonly pairwise
estimates store oe5
xtpcse  l1M_nwageshare M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod*, correlation(psar1) hetonly pairwise
estimates store of5
xtpcse l1M_nwageshare M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration M_al_ethnic M_easteursov M_africass M_asiapac M_mideanafr M_latam M_britishameric M_french M_portugese M_spanish M_belgian _Iperiod*, correlation(psar1) hetonly pairwise
estimates store og5
xtreg l1M_nwageshare M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod*, fe cluster(gwno)
estimates store oh5
estout  oa5 oc5 od5 oe5 og5 oh5, cells(b(star fmt(%9.3f)) t(par fmt(%9.2f))) starlevels (* 0.10 ** 0.05 *** 0.01) stats (N)style (tex)

****************************
**** Generate Table A.7 ****
****************************
xtpcse l1M_npolity2 M_nwageshare M_bl_asy25mf M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, correlation(psar1) hetonly pairwise
estimates store oa5
xtpcse  l1M_npolity2 M_nwageshare M_bl_asy25mf M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod*, correlation(psar1) hetonly pairwise
estimates store ob5
xtpcse l1M_npolity2 M_nwageshare M_bl_asy25mf M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration M_al_ethnic M_easteursov M_africass M_asiapac M_mideanafr M_latam M_britishameric M_french M_portugese M_spanish M_belgian _Iperiod*, correlation(psar1) hetonly pairwise
estimates store oc5
xtreg l1M_npolity2 M_nwageshare M_bl_asy25mf M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod*, fe cluster(gwno)
estimates store od5
xtpcse l1M_nwageshare M_npolity2 M_bl_asy25mf M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, correlation(psar1) hetonly pairwise
estimates store oe5
xtpcse  l1M_nwageshare M_npolity2 M_bl_asy25mf M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod*, correlation(psar1) hetonly pairwise
estimates store of5
xtpcse l1M_nwageshare M_npolity2 M_bl_asy25mf M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration M_al_ethnic M_easteursov M_africass M_asiapac M_mideanafr M_latam M_britishameric M_french M_portugese M_spanish M_belgian _Iperiod*, correlation(psar1) hetonly pairwise
estimates store og5
xtreg l1M_nwageshare M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod*, fe cluster(gwno)
estimates store oh5
estout  oa5 oc5 od5 oe5 og5 oh5, cells(b(star fmt(%9.3f)) t(par fmt(%9.2f))) starlevels (* 0.10 ** 0.05 *** 0.01) stats (N)style (tex)

save "C:\Users\carlhk\Dropbox\Carl_Selemon\Replication_Democracy_Inequality_5_year_panel.dta", replace

**********************
**** APPENDIX A.3 ****
**********************

use "C:\Users\carlhk\Dropbox\Carl_Selemon\Replication_Democracy_Inequality_1_year_panel.dta", clear

****************************
**** Generate Table A.8 ****
****************************
xtabond2  l1npolity2 nwageshare npolity2 lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(nwageshare) iv(_Iyear* lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration) noleveleq  robust
estimates store q1a
xtabond2  l1npolity2 nwageshare npolity2 lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(nwageshare, lag (2 2)) iv(_Iyear* lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration) noleveleq  robust
estimates store q3a
xtabond2  l1npolity2 nwageshare npolity2 lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(npolity2 nwageshare lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration, lag (3 3)) iv(_Iyear*) noleveleq  robust
estimates store q4a
xtabond2  l1npolity2 nwageshare npolity2 l.npolity2  lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(nwageshare, lag (3 3)) iv(_Iyear* lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration) noleveleq  robust
estimates store q5a
xtabond2  l1npolity2 nwageshare npolity2  l.npolity2   lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(npolity2 nwageshare l.nwageshare  lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration, lag (3 3)) iv(_Iyear*) noleveleq robust
estimates store q6a
xtabond2  l1npolity2 nwageshare npolity2  lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(nwageshare) iv(_Iyear* lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration)   robust
estimates store q1
xtabond2  l1npolity2 nwageshare npolity2 lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(nwageshare, lag (2 2)) iv(_Iyear* lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration) robust
estimates store q3
xtabond2  l1npolity2 nwageshare npolity2 lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(npolity2 nwageshare lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration, lag (3 3)) iv(_Iyear*) robust
estimates store q4
xtabond2  l1npolity2 nwageshare npolity2 l.npolity2  lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(nwageshare, lag (3 3)) iv(_Iyear* lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration) robust
estimates store q5
xtabond2  l1npolity2 nwageshare npolity2 l.npolity2   lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(npolity2 nwageshare l.nwageshare  lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration, lag (3 3)) iv(_Iyear*) robust
estimates store q6
estout q1a q3a q4a q5a q6a q1 q3 q4 q5 q6, cells(b(star fmt(%9.3f)) t(par fmt(%9.2f))) starlevels (* 0.10 ** 0.05 *** 0.01) stats (N)style (tex)

****************************
**** Generate Table A.9 ****
****************************
xtabond2  l1npolity2 nwageshare npolity2 lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(nwageshare) iv(_Iyear* lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration) noleveleq  twostep robust
estimates store q1a
xtabond2  l1npolity2 nwageshare npolity2 lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(nwageshare, lag (2 2)) iv(_Iyear* lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration) noleveleq  twostep robust
estimates store q3a
xtabond2  l1npolity2 nwageshare npolity2 lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(npolity2 nwageshare lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration, lag (3 3)) iv(_Iyear*) noleveleq  twostep robust
estimates store q4a
xtabond2  l1npolity2 nwageshare npolity2 l.npolity2  lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(nwageshare, lag (3 3)) iv(_Iyear* lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration) noleveleq  twostep robust
estimates store q5a
xtabond2  l1npolity2 nwageshare npolity2  l.npolity2   lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(npolity2 nwageshare l.nwageshare  lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration, lag (3 3)) iv(_Iyear*) noleveleq twostep robust
estimates store q6a
xtabond2  l1npolity2 nwageshare npolity2  lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(nwageshare) iv(_Iyear* lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration)  twostep robust
estimates store q1
xtabond2  l1npolity2 nwageshare npolity2 lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(nwageshare, lag (2 2)) iv(_Iyear* lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration)  twostep robust
estimates store q3
xtabond2  l1npolity2 nwageshare npolity2 lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(npolity2 nwageshare lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration, lag (3 3)) iv(_Iyear*) twostep robust
estimates store q4
xtabond2  l1npolity2 nwageshare npolity2 l.npolity2  lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(nwageshare, lag (3 3)) iv(_Iyear* lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration) twostep robust
estimates store q5
xtabond2  l1npolity2 nwageshare npolity2 l.npolity2   lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(npolity2 nwageshare l.nwageshare  lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration, lag (3 3)) iv(_Iyear*) twostep robust
estimates store q6
estout q1a q3a q4a q5a q6a q1 q3 q4 q5 q6, cells(b(star fmt(%9.3f)) t(par fmt(%9.2f))) starlevels (* 0.10 ** 0.05 *** 0.01) stats (N)style (tex)

save "C:\Users\carlhk\Dropbox\Carl_Selemon\Replication_Democracy_Inequality_1_year_panel.dta", replace

*****************************
**** Generate Table A.10 ****
*****************************
use "C:\Users\carlhk\Dropbox\Carl_Selemon\Replication_Democracy_Inequality_5_year_panel.dta", clear
xtabond2 l1M_npolity2 M_npolity2 M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare) iv(M_lnmad_gdpc M_npolity2 M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) noleveleq robust
estimates store a51
xtabond2 l1M_npolity2 M_npolity2 M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration) iv(_Iperiod_*) noleveleq robust
estimates store a52
xtabond2 l1M_npolity2 M_npolity2 M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, lag (2 5)) iv(_Iperiod_*) noleveleq robust
estimates store a53
xtabond2 l1M_npolity2 M_npolity2 l.M_npolity2 M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare) iv(M_npolity2 l.M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) noleveleq robust
estimates store a54
xtabond2 l1M_npolity2 M_npolity2 M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, lag (3 5)) iv(_Iperiod_*) noleveleq robust
estimates store a55
xtabond2 l1M_npolity2 M_npolity2 l.M_npolity2 M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_npolity2 l.M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration , lag (3 5)) iv(_Iperiod_*) noleveleq robust
estimates store a56
xtabond2 l1M_npolity2 M_npolity2 M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare) iv(M_lnmad_gdpc M_npolity2 M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) robust
estimates store s51
xtabond2 l1M_npolity2 M_npolity2 M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration) iv(_Iperiod_*) robust
estimates store s52
xtabond2 l1M_npolity2 M_npolity2 M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, lag (2 5)) iv(_Iperiod_*) robust
estimates store s53
xtabond2 l1M_npolity2 M_npolity2 l.M_npolity2 M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare) iv(M_npolity2 l.M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) robust
estimates store s54
xtabond2 l1M_npolity2 M_npolity2 M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, lag (3 5)) iv(_Iperiod_*) robust
estimates store s55
xtabond2 l1M_npolity2 M_npolity2 l.M_npolity2 M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_npolity2 l.M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration , lag (3 5)) iv(_Iperiod_*) robust
estimates store s56
estout  a51 a52 a53 a54 a55 a56 s51 s52 s53 s54 s55 s56, cells(b(star fmt(%9.3f)) t(par fmt(%9.2f))) starlevels (* 0.10 ** 0.05 *** 0.01) stats (N)style (tex)

*****************************
**** Generate Table A.11 ****
*****************************
xtabond2 l1M_npolity2 M_npolity2 M_nwageshare M_wssq M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_wssq) iv(M_lnmad_gdpc M_npolity2 M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) noleveleq robust
estimates store a51
xtabond2 l1M_npolity2 M_npolity2 M_nwageshare M_wssq M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_wssq M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration) iv(_Iperiod_*) noleveleq robust
estimates store a52
xtabond2 l1M_npolity2 M_npolity2 M_nwageshare M_wssq M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_wssq M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, lag (2 5)) iv(_Iperiod_*) noleveleq robust
estimates store a53
xtabond2 l1M_npolity2 M_npolity2 l.M_npolity2 M_nwageshare M_wssq M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_wssq) iv(M_npolity2 l.M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) noleveleq robust
estimates store a54
xtabond2 l1M_npolity2 M_npolity2 M_nwageshare M_wssq M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_wssq M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, lag (3 5)) iv(_Iperiod_*) noleveleq robust
estimates store a55
xtabond2 l1M_npolity2 M_npolity2 l.M_npolity2 M_nwageshare M_wssq M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_wssq M_npolity2 l.M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration , lag (3 5)) iv(_Iperiod_*) noleveleq robust
estimates store a56
xtabond2 l1M_npolity2 M_npolity2 M_nwageshare M_wssq M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_wssq) iv(M_lnmad_gdpc M_npolity2 M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) robust
estimates store s51
xtabond2 l1M_npolity2 M_npolity2 M_nwageshare M_wssq M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_wssq M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration) iv(_Iperiod_*) robust
estimates store s52
xtabond2 l1M_npolity2 M_npolity2 M_nwageshare M_wssq M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_wssq M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, lag (2 5)) iv(_Iperiod_*) robust
estimates store s53
xtabond2 l1M_npolity2 M_npolity2 l.M_npolity2 M_nwageshare M_wssq M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_wssq) iv(M_npolity2 l.M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) robust
estimates store s54
xtabond2 l1M_npolity2 M_npolity2 M_nwageshare M_wssq M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_wssq M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, lag (3 5)) iv(_Iperiod_*) robust
estimates store s55
xtabond2 l1M_npolity2 M_npolity2 l.M_npolity2 M_nwageshare M_wssq M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_wssq M_npolity2 l.M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration , lag (3 5)) iv(_Iperiod_*) robust
estimates store s56
estout  a51 a52 a53 a54 a55 a56 s51 s52 s53 s54 s55 s56, cells(b(star fmt(%9.3f)) t(par fmt(%9.2f))) starlevels (* 0.10 ** 0.05 *** 0.01) stats (N j)style (tex)

*****************************
**** Generate Table A.12 ****
*****************************
xtabond2 l1M_npolity2 M_npolity2 M_nwageshare M_bl_asy25f M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare) iv(M_lnmad_gdpc M_npolity2 M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) noleveleq robust
estimates store a512
xtabond2 l1M_npolity2 M_npolity2 M_nwageshare M_bl_asy25f M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_bl_asy25f M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration) iv(_Iperiod_*) noleveleq robust
estimates store a522
xtabond2 l1M_npolity2 M_npolity2 M_nwageshare M_bl_asy25f M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_bl_asy25f M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, lag (2 5)) iv(_Iperiod_*) noleveleq robust
estimates store a532
xtabond2 l1M_npolity2 M_npolity2 l.M_npolity2 M_nwageshare M_bl_asy25f M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare) iv(M_npolity2 l.M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) noleveleq robust
estimates store a542
xtabond2 l1M_npolity2 M_npolity2 M_nwageshare M_bl_asy25f M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_bl_asy25f M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, lag (3 5)) iv(_Iperiod_*) noleveleq robust
estimates store a552
xtabond2 l1M_npolity2 M_npolity2 l.M_npolity2 M_nwageshare M_bl_asy25f M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_bl_asy25f M_npolity2 l.M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration , lag (3 5)) iv(_Iperiod_*) noleveleq robust
estimates store a562
xtabond2 l1M_npolity2 M_npolity2 M_nwageshare M_bl_asy25f M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare) iv(M_lnmad_gdpc M_npolity2 M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) robust
estimates store s512
xtabond2 l1M_npolity2 M_npolity2 M_nwageshare M_bl_asy25f M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_bl_asy25f M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration) iv(_Iperiod_*) robust
estimates store s522
xtabond2 l1M_npolity2 M_npolity2 M_nwageshare M_bl_asy25f M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_bl_asy25f M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, lag (2 5)) iv(_Iperiod_*) robust
estimates store s532
xtabond2 l1M_npolity2 M_npolity2 l.M_npolity2 M_nwageshare M_bl_asy25f M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare) iv(M_npolity2 l.M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) robust
estimates store s542
xtabond2 l1M_npolity2 M_npolity2 M_nwageshare M_bl_asy25f M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_bl_asy25f M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, lag (3 5)) iv(_Iperiod_*) robust
estimates store s552
xtabond2 l1M_npolity2 M_npolity2 l.M_npolity2 M_nwageshare M_bl_asy25f M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_bl_asy25f M_npolity2 l.M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration , lag (3 5)) iv(_Iperiod_*) robust
estimates store s562
estout  a512 a522 a532 a542 a552 a562 s512 s522 s532 s542 s552 s562, cells(b(star fmt(%9.3f)) t(par fmt(%9.2f))) starlevels (* 0.10 ** 0.05 *** 0.01) stats (N)style (tex)

*****************************
**** Generate Table A.13 ****
*****************************
xtabond2 l1M_npolity2 M_npolity2 M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare) iv(M_lnmad_gdpc M_npolity2 M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) noleveleq twostep robust
estimates store a51t
xtabond2 l1M_npolity2 M_npolity2 M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration) iv(_Iperiod_*) noleveleq twostep robust
estimates store a52t
xtabond2 l1M_npolity2 M_npolity2 M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, lag (2 5)) iv(_Iperiod_*) noleveleq twostep robust
estimates store a53t
xtabond2 l1M_npolity2 M_npolity2 l.M_npolity2 M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare) iv(M_npolity2 l.M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) noleveleq twostep robust
estimates store a54t
xtabond2 l1M_npolity2 M_npolity2 M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, lag (3 5)) iv(_Iperiod_*) noleveleq twostep robust
estimates store a55t
xtabond2 l1M_npolity2 M_npolity2 l.M_npolity2 M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_npolity2 l.M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration , lag (3 5)) iv(_Iperiod_*) noleveleq twostep robust
estimates store a56t
xtabond2 l1M_npolity2 M_npolity2 M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare) iv(M_lnmad_gdpc M_npolity2 M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) twostep robust
estimates store s51t
xtabond2 l1M_npolity2 M_npolity2 M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration) iv(_Iperiod_*) twostep robust
estimates store s52t
xtabond2 l1M_npolity2 M_npolity2 M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, lag (2 5)) iv(_Iperiod_*) twostep robust
estimates store s53t
xtabond2 l1M_npolity2 M_npolity2 l.M_npolity2 M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare) iv(M_npolity2 l.M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) twostep robust
estimates store s54t
xtabond2 l1M_npolity2 M_npolity2 M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, lag (3 5)) iv(_Iperiod_*) twostep robust
estimates store s55t
xtabond2 l1M_npolity2 M_npolity2 l.M_npolity2 M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_npolity2 l.M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration , lag (3 5)) iv(_Iperiod_*) twostep robust
estimates store s56t
estout  a51t a52t a53t a54t a55t a56t s51t s52t s53t s54t s55t s56t, cells(b(star fmt(%9.3f)) t(par fmt(%9.2f))) starlevels (* 0.10 ** 0.05 *** 0.01) stats (N)style (tex)

*****************************
**** Generate Table A.14 ****
*****************************
xtabond2 l1M_npolity2 M_npolity2 M_solt_ginmar M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_solt_ginmar) iv(M_lnmad_gdpc M_npolity2 M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) noleveleq robust
estimates store a511
xtabond2 l1M_npolity2 M_npolity2 M_solt_ginmar M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_solt_ginmar M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration) iv(_Iperiod_*) noleveleq robust
estimates store a521
xtabond2 l1M_npolity2 M_npolity2 M_solt_ginmar M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_solt_ginmar M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, lag (2 5)) iv(_Iperiod_*) noleveleq robust
estimates store a531
xtabond2 l1M_npolity2 M_npolity2 l.M_npolity2 M_solt_ginmar M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_solt_ginmar) iv(M_npolity2 l.M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) noleveleq robust
estimates store a541
xtabond2 l1M_npolity2 M_npolity2 M_solt_ginmar M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_solt_ginmar M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, lag (3 5)) iv(_Iperiod_*) noleveleq robust
estimates store a551
xtabond2 l1M_npolity2 M_npolity2 l.M_npolity2 M_solt_ginmar M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_solt_ginmar M_npolity2 l.M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration , lag (3 5)) iv(_Iperiod_*) noleveleq robust
estimates store a561
xtabond2 l1M_npolity2 M_npolity2 M_solt_ginmar M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_solt_ginmar) iv(M_lnmad_gdpc M_npolity2 M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) robust
estimates store s511
xtabond2 l1M_npolity2 M_npolity2 M_solt_ginmar M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_solt_ginmar M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration) iv(_Iperiod_*) robust
estimates store s521
xtabond2 l1M_npolity2 M_npolity2 M_solt_ginmar M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_solt_ginmar M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, lag (2 5)) iv(_Iperiod_*) robust
estimates store s531
xtabond2 l1M_npolity2 M_npolity2 l.M_npolity2 M_solt_ginmar M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_solt_ginmar) iv(M_npolity2 l.M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) robust
estimates store s541
xtabond2 l1M_npolity2 M_npolity2 M_solt_ginmar M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_solt_ginmar M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, lag (3 5)) iv(_Iperiod_*) robust
estimates store s551
xtabond2 l1M_npolity2 M_npolity2 l.M_npolity2 M_solt_ginmar M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_solt_ginmar M_npolity2 l.M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration , lag (3 5)) iv(_Iperiod_*) robust
estimates store s561
estout  a511 a521 a531 a541 a551 a561 s511 s521 s531 s541 s551 s561, cells(b(star fmt(%9.3f)) t(par fmt(%9.2f))) starlevels (* 0.10 ** 0.05 *** 0.01) stats (N)style (tex)

*****************************
**** Generate Table A.15 ****
*****************************
xtabond2 l1M_npolity2 M_npolity2 M_solt_ginet M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_solt_ginet) iv(M_lnmad_gdpc M_npolity2 M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) noleveleq robust
estimates store a512
xtabond2 l1M_npolity2 M_npolity2 M_solt_ginet M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_solt_ginet M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration) iv(_Iperiod_*) noleveleq robust
estimates store a522
xtabond2 l1M_npolity2 M_npolity2 M_solt_ginet M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_solt_ginet M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, lag (2 5)) iv(_Iperiod_*) noleveleq robust
estimates store a532
xtabond2 l1M_npolity2 M_npolity2 l.M_npolity2 M_solt_ginet M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_solt_ginet) iv(M_npolity2 l.M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) noleveleq robust
estimates store a542
xtabond2 l1M_npolity2 M_npolity2 M_solt_ginet M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_solt_ginet M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, lag (3 5)) iv(_Iperiod_*) noleveleq robust
estimates store a552
xtabond2 l1M_npolity2 M_npolity2 l.M_npolity2 M_solt_ginet M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_solt_ginet M_npolity2 l.M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration , lag (3 5)) iv(_Iperiod_*) noleveleq robust
estimates store a562
xtabond2 l1M_npolity2 M_npolity2 M_solt_ginet M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_solt_ginet) iv(M_lnmad_gdpc M_npolity2 M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) robust
estimates store s512
xtabond2 l1M_npolity2 M_npolity2 M_solt_ginet M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_solt_ginet M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration) iv(_Iperiod_*) robust
estimates store s522
xtabond2 l1M_npolity2 M_npolity2 M_solt_ginet M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_solt_ginet M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, lag (2 5)) iv(_Iperiod_*) robust
estimates store s532
xtabond2 l1M_npolity2 M_npolity2 l.M_npolity2 M_solt_ginet M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_solt_ginet) iv(M_npolity2 l.M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) robust
estimates store s542
xtabond2 l1M_npolity2 M_npolity2 M_solt_ginet M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_solt_ginet M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, lag (3 5)) iv(_Iperiod_*) robust
estimates store s552
xtabond2 l1M_npolity2 M_npolity2 l.M_npolity2 M_solt_ginet M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_solt_ginet M_npolity2 l.M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration , lag (3 5)) iv(_Iperiod_*) robust
estimates store s562
estout  a512 a522 a532 a542 a552 a562 s512 s522 s532 s542 s552 s562, cells(b(star fmt(%9.3f)) t(par fmt(%9.2f))) starlevels (* 0.10 ** 0.05 *** 0.01) stats (N)style (tex)

*****************************
**** Generate Table A.16 ****
*****************************
xtabond2 l1M_npolity2 M_npolity2 M_wdi_gini M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_wdi_gini) iv(M_lnmad_gdpc M_npolity2 M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) noleveleq robust
estimates store a512
xtabond2 l1M_npolity2 M_npolity2 M_wdi_gini M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_wdi_gini M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration) iv(_Iperiod_*) noleveleq robust
estimates store a522
xtabond2 l1M_npolity2 M_npolity2 M_wdi_gini M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_wdi_gini M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, lag (2 5)) iv(_Iperiod_*) noleveleq robust
estimates store a532
xtabond2 l1M_npolity2 M_npolity2 l.M_npolity2 M_wdi_gini M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_wdi_gini) iv(M_npolity2 l.M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) noleveleq robust
estimates store a542
xtabond2 l1M_npolity2 M_npolity2 M_wdi_gini M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_wdi_gini M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, lag (3 5)) iv(_Iperiod_*) noleveleq robust
estimates store a552
xtabond2 l1M_npolity2 M_npolity2 l.M_npolity2 M_wdi_gini M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_wdi_gini M_npolity2 l.M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration , lag (3 5)) iv(_Iperiod_*) noleveleq robust
estimates store a562
xtabond2 l1M_npolity2 M_npolity2 M_wdi_gini M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_wdi_gini) iv(M_lnmad_gdpc M_npolity2 M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) robust
estimates store s512
xtabond2 l1M_npolity2 M_npolity2 M_wdi_gini M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_wdi_gini M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration) iv(_Iperiod_*) robust
estimates store s522
xtabond2 l1M_npolity2 M_npolity2 M_wdi_gini M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_wdi_gini M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, lag (2 5)) iv(_Iperiod_*) robust
estimates store s532
xtabond2 l1M_npolity2 M_npolity2 l.M_npolity2 M_wdi_gini M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_wdi_gini) iv(M_npolity2 l.M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) robust
estimates store s542
xtabond2 l1M_npolity2 M_npolity2 M_wdi_gini M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_wdi_gini M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, lag (3 5)) iv(_Iperiod_*) robust
estimates store s552
xtabond2 l1M_npolity2 M_npolity2 l.M_npolity2 M_wdi_gini M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_wdi_gini M_npolity2 l.M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration , lag (3 5)) iv(_Iperiod_*) robust
estimates store s562
estout  a512 a522 a532 a542 a552 a562 s512 s522 s532 s542 s552 s562, cells(b(star fmt(%9.3f)) t(par fmt(%9.2f))) starlevels (* 0.10 ** 0.05 *** 0.01) stats (N)style (tex)

*****************************
**** Generate Table A.17 ****
*****************************
xtabond2 l1M_npolity2 M_npolity2 M_utip_ehii M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_utip_ehii) iv(M_lnmad_gdpc M_npolity2 M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) noleveleq robust
estimates store a512
xtabond2 l1M_npolity2 M_npolity2 M_utip_ehii M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_utip_ehii M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration) iv(_Iperiod_*) noleveleq robust
estimates store a522
xtabond2 l1M_npolity2 M_npolity2 M_utip_ehii M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_utip_ehii M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, lag (2 5)) iv(_Iperiod_*) noleveleq robust
estimates store a532
xtabond2 l1M_npolity2 M_npolity2 l.M_npolity2 M_utip_ehii M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_utip_ehii) iv(M_npolity2 l.M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) noleveleq robust
estimates store a542
xtabond2 l1M_npolity2 M_npolity2 M_utip_ehii M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_utip_ehii M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, lag (3 5)) iv(_Iperiod_*) noleveleq robust
estimates store a552
xtabond2 l1M_npolity2 M_npolity2 l.M_npolity2 M_utip_ehii M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_utip_ehii M_npolity2 l.M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration , lag (3 5)) iv(_Iperiod_*) noleveleq robust
estimates store a562
xtabond2 l1M_npolity2 M_npolity2 M_utip_ehii M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_utip_ehii) iv(M_lnmad_gdpc M_npolity2 M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) robust
estimates store s512
xtabond2 l1M_npolity2 M_npolity2 M_utip_ehii M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_utip_ehii M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration) iv(_Iperiod_*) robust
estimates store s522
xtabond2 l1M_npolity2 M_npolity2 M_utip_ehii M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_utip_ehii M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, lag (2 5)) iv(_Iperiod_*) robust
estimates store s532
xtabond2 l1M_npolity2 M_npolity2 l.M_npolity2 M_utip_ehii M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_utip_ehii) iv(M_npolity2 l.M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) robust
estimates store s542
xtabond2 l1M_npolity2 M_npolity2 M_utip_ehii M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_utip_ehii M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, lag (3 5)) iv(_Iperiod_*) robust
estimates store s552
xtabond2 l1M_npolity2 M_npolity2 l.M_npolity2 M_utip_ehii M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_utip_ehii M_npolity2 l.M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration , lag (3 5)) iv(_Iperiod_*) robust
estimates store s562
estout  a512 a522 a532 a542 a552 a562 s512 s522 s532 s542 s552 s562, cells(b(star fmt(%9.3f)) t(par fmt(%9.2f))) starlevels (* 0.10 ** 0.05 *** 0.01) stats (N)style (tex)

*****************************
**** Generate Table A.18 ****
*****************************
***Using WIID ginis, extracted by simplified Gerry & M algorithm (reported ginis, also excluding ginis not adjusted to equivalence scale)
xtabond2 l1M_npolity2 M_npolity2 M_Gini_rep2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_Gini_rep2) iv(M_lnmad_gdpc M_npolity2 M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) noleveleq robust
estimates store a512
xtabond2 l1M_npolity2 M_npolity2 M_Gini_rep2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_Gini_rep2 M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration) iv(_Iperiod_*) noleveleq robust
estimates store a522
xtabond2 l1M_npolity2 M_npolity2 M_Gini_rep2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_Gini_rep2 M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, lag (2 5)) iv(_Iperiod_*) noleveleq robust
estimates store a532
xtabond2 l1M_npolity2 M_npolity2 l.M_npolity2 M_Gini_rep2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_Gini_rep2) iv(M_npolity2 l.M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) noleveleq robust
estimates store a542
xtabond2 l1M_npolity2 M_npolity2 M_Gini_rep2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_Gini_rep2 M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, lag (3 5)) iv(_Iperiod_*) noleveleq robust
estimates store a552
xtabond2 l1M_npolity2 M_npolity2 l.M_npolity2 M_Gini_rep2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_Gini_rep2 M_npolity2 l.M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration , lag (3 5)) iv(_Iperiod_*) noleveleq robust
estimates store a562
xtabond2 l1M_npolity2 M_npolity2 M_Gini_rep2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_Gini_rep2) iv(M_lnmad_gdpc M_npolity2 M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) robust
estimates store s512
xtabond2 l1M_npolity2 M_npolity2 M_Gini_rep2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_Gini_rep2 M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration) iv(_Iperiod_*) robust
estimates store s522
xtabond2 l1M_npolity2 M_npolity2 M_Gini_rep2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_Gini_rep2 M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, lag (2 5)) iv(_Iperiod_*) robust
estimates store s532
xtabond2 l1M_npolity2 M_npolity2 l.M_npolity2 M_Gini_rep2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_Gini_rep2) iv(M_npolity2 l.M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) robust
estimates store s542
xtabond2 l1M_npolity2 M_npolity2 M_Gini_rep2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_Gini_rep2 M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, lag (3 5)) iv(_Iperiod_*) robust
estimates store s552
xtabond2 l1M_npolity2 M_npolity2 l.M_npolity2 M_Gini_rep2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_Gini_rep2 M_npolity2 l.M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration , lag (3 5)) iv(_Iperiod_*) robust
estimates store s562
estout  a512 a522 a532 a542 a552 a562 s512 s522 s532 s542 s552 s562, cells(b(star fmt(%9.3f)) t(par fmt(%9.2f))) starlevels (* 0.10 ** 0.05 *** 0.01) stats (N)style (tex)

*****************************
**** Generate Table A.19 ****
*****************************
xtabond2 l1M_sip M_sip M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare) iv(M_lnmad_gdpc M_sip M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) noleveleq robust
estimates store a51
xtabond2 l1M_sip M_sip M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_sip M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration) iv(_Iperiod_*) noleveleq robust
estimates store a52
xtabond2 l1M_sip M_sip M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_sip M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, lag (2 5)) iv(_Iperiod_*) noleveleq robust
estimates store a53
xtabond2 l1M_sip M_sip l.M_sip M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare) iv(M_sip l.M_sip M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) noleveleq robust
estimates store a54
xtabond2 l1M_sip M_sip M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_sip M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, lag (3 5)) iv(_Iperiod_*) noleveleq robust
estimates store a55
xtabond2 l1M_sip M_sip l.M_sip M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_sip l.M_sip M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration , lag (3 5)) iv(_Iperiod_*) noleveleq robust
estimates store a56
xtabond2 l1M_sip M_sip M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare) iv(M_lnmad_gdpc M_sip M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) robust
estimates store s51
xtabond2 l1M_sip M_sip M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_sip M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration) iv(_Iperiod_*) robust
estimates store s52
xtabond2 l1M_sip M_sip M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_sip M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, lag (2 5)) iv(_Iperiod_*) robust
estimates store s53
xtabond2 l1M_sip M_sip l.M_sip M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare) iv(M_sip l.M_sip M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) robust
estimates store s54
xtabond2 l1M_sip M_sip M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_sip M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, lag (3 5)) iv(_Iperiod_*) robust
estimates store s55
xtabond2 l1M_sip M_sip l.M_sip M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_sip l.M_sip M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration , lag (3 5)) iv(_Iperiod_*) robust
estimates store s56
estout  a51 a52 a53 a54 a55 a56 s51 s52 s53 s54 s55 s56, cells(b(star fmt(%9.3f)) t(par fmt(%9.2f))) starlevels (* 0.10 ** 0.05 *** 0.01) stats (N)style (tex)

*****************************
**** Generate Table A.20 ****
*****************************
xtabond2 l1M_fhi M_fhi M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare) iv(M_lnmad_gdpc M_fhi M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) noleveleq robust
estimates store a51
xtabond2 l1M_fhi M_fhi M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_fhi M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration) iv(_Iperiod_*) noleveleq robust
estimates store a52
xtabond2 l1M_fhi M_fhi M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_fhi M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, lag (2 5)) iv(_Iperiod_*) noleveleq robust
estimates store a53
xtabond2 l1M_fhi M_fhi l.M_fhi M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare) iv(M_fhi l.M_fhi M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) noleveleq robust
estimates store a54
xtabond2 l1M_fhi M_fhi M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_fhi M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, lag (3 5)) iv(_Iperiod_*) noleveleq robust
estimates store a55
xtabond2 l1M_fhi M_fhi l.M_fhi M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_fhi l.M_fhi M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration , lag (3 5)) iv(_Iperiod_*) noleveleq robust
estimates store a56
xtabond2 l1M_fhi M_fhi M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare) iv(M_lnmad_gdpc M_fhi M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) robust
estimates store s51
xtabond2 l1M_fhi M_fhi M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_fhi M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration) iv(_Iperiod_*) robust
estimates store s52
xtabond2 l1M_fhi M_fhi M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_fhi M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, lag (2 5)) iv(_Iperiod_*) robust
estimates store s53
xtabond2 l1M_fhi M_fhi l.M_fhi M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare) iv(M_fhi l.M_fhi M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) robust
estimates store s54
xtabond2 l1M_fhi M_fhi M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_fhi M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, lag (3 5)) iv(_Iperiod_*) robust
estimates store s55
xtabond2 l1M_fhi M_fhi l.M_fhi M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_fhi l.M_fhi M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration , lag (3 5)) iv(_Iperiod_*) robust
estimates store s56
estout  a51 a52 a53 a54 a55 a56 s51 s52 s53 s54 s55 s56, cells(b(star fmt(%9.3f)) t(par fmt(%9.2f))) starlevels (* 0.10 ** 0.05 *** 0.01) stats (N)style (tex)

*****************************
**** Generate Table A.21 ****
*****************************
xtabond2 l1M_uds_mean M_uds_mean M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare) iv(M_lnmad_gdpc M_uds_mean M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) noleveleq robust
estimates store a51
xtabond2 l1M_uds_mean M_uds_mean M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_uds_mean M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration) iv(_Iperiod_*) noleveleq robust
estimates store a52
xtabond2 l1M_uds_mean M_uds_mean M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_uds_mean M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, lag (2 5)) iv(_Iperiod_*) noleveleq robust
estimates store a53
xtabond2 l1M_uds_mean M_uds_mean l.M_uds_mean M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare) iv(M_uds_mean l.M_uds_mean M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) noleveleq robust
estimates store a54
xtabond2 l1M_uds_mean M_uds_mean M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_uds_mean M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, lag (3 5)) iv(_Iperiod_*) noleveleq robust
estimates store a55
xtabond2 l1M_uds_mean M_uds_mean l.M_uds_mean M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_uds_mean l.M_uds_mean M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration , lag (3 5)) iv(_Iperiod_*) noleveleq robust
estimates store a56
xtabond2 l1M_uds_mean M_uds_mean M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare) iv(M_lnmad_gdpc M_uds_mean M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) robust
estimates store s51
xtabond2 l1M_uds_mean M_uds_mean M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_uds_mean M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration) iv(_Iperiod_*) robust
estimates store s52
xtabond2 l1M_uds_mean M_uds_mean M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_uds_mean M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, lag (2 5)) iv(_Iperiod_*) robust
estimates store s53
xtabond2 l1M_uds_mean M_uds_mean l.M_uds_mean M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare) iv(M_uds_mean l.M_uds_mean M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) robust
estimates store s54
xtabond2 l1M_uds_mean M_uds_mean M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_uds_mean M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, lag (3 5)) iv(_Iperiod_*) robust
estimates store s55
xtabond2 l1M_uds_mean M_uds_mean l.M_uds_mean M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_uds_mean l.M_uds_mean M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration , lag (3 5)) iv(_Iperiod_*) robust
estimates store s56
estout  a51 a52 a53 a54 a55 a56 s51 s52 s53 s54 s55 s56, cells(b(star fmt(%9.3f)) t(par fmt(%9.2f))) starlevels (* 0.10 ** 0.05 *** 0.01) stats (N)style (tex)

save "C:\Users\carlhk\Dropbox\Carl_Selemon\Replication_Democracy_Inequality_5_year_panel.dta", replace

**********************
**** APPENDIX A.3 ****
**********************

use "C:\Users\carlhk\Dropbox\Carl_Selemon\Replication_Democracy_Inequality_1_year_panel.dta", clear


*****************************
**** Generate Table A.22 ****
*****************************
xtivreg2 l1nwageshare lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear* (npolity2 = inreversewave rprincept), fe first i(gwno)
estimates store twos222
xtoverid, cluster(gwno)
xtivreg2 l1nwageshare lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear* (sip = inreversewave rprincept), fe first i(gwno)
estimates store twos223
xtoverid, cluster(gwno)
xtivreg2 l1nwageshare lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear* (fhi = inreversewave rprincept), fe first i(gwno)
estimates store twos224
xtoverid, cluster(gwno)
xtivreg2 l1nwageshare lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear* (uds_mean = inreversewave rprincept), fe first i(gwno)
estimates store twos225
xtoverid, cluster(gwno)
xtivreg2 l1nsolt_ginet lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear* (npolity2 = inreversewave rprincept), fe first i(gwno)
estimates store twos22dsd
xtoverid, cluster(gwno)
xtivreg2 l1nsolt_ginmar lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear* (npolity2 = inreversewave rprincept), fe first i(gwno)
estimates store twos22dsd2
xtoverid, cluster(gwno)
estout twos222 twos223 twos224 twos225 twos22dsd twos22dsd2, cells(b(star fmt(%9.3f)) t(par fmt(%9.2f))) starlevels (* 0.10 ** 0.05 *** 0.01) stats (N)style (tex)

*****************************
**** Generate Table A.23 ****
*****************************
xtabond2  l1nwageshare npolity2 nwageshare lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(npolity2) iv(_Iyear* lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration) noleveleq  robust
estimates store q1a
xtabond2  l1nwageshare npolity2 nwageshare lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(npolity2, lag (2 2)) iv(_Iyear* lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration) noleveleq  robust
estimates store q3a
xtabond2  l1nwageshare npolity2 nwageshare lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(npolity2 nwageshare lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration, lag (3 3)) iv(_Iyear*) noleveleq  robust
estimates store q4a
xtabond2  l1nwageshare npolity2 nwageshare l.nwageshare lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(npolity2, lag (3 3)) iv(_Iyear* lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration) noleveleq  robust
estimates store q5a
xtabond2  l1nwageshare npolity2 nwageshare l.nwageshare  lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(npolity2 nwageshare l.nwageshare  lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration, lag (3 3)) iv(_Iyear*) noleveleq robust
estimates store q6a
xtabond2  l1nwageshare npolity2 nwageshare lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(npolity2) iv(_Iyear* lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration)  robust
estimates store q1
xtabond2  l1nwageshare npolity2 nwageshare lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(npolity2, lag (2 2)) iv(_Iyear* lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration) robust
estimates store q3
xtabond2  l1nwageshare npolity2 nwageshare lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(npolity2 nwageshare lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration, lag (3 3)) iv(_Iyear*) robust
estimates store q4
xtabond2  l1nwageshare npolity2 nwageshare l.nwageshare lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(npolity2, lag (3 3)) iv(_Iyear* lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration) robust
estimates store q5
xtabond2  l1nwageshare npolity2 nwageshare l.nwageshare  lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(npolity2 nwageshare l.nwageshare  lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration, lag (3 3)) iv(_Iyear*) robust
estimates store q6
estout q1a q3a q4a q5a q6a q1 q3 q4 q5 q6, cells(b(star fmt(%9.3f)) t(par fmt(%9.2f))) starlevels (* 0.10 ** 0.05 *** 0.01) stats (N)style (tex)

*****************************
**** Generate Table A.24 ****
*****************************
xtabond2  l1nwageshare npolity2 nwageshare lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(npolity2) iv(_Iyear* lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration) noleveleq  twostep robust
estimates store q1a
xtabond2  l1nwageshare npolity2 nwageshare lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(npolity2, lag (2 2)) iv(_Iyear* lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration) noleveleq  twostep robust
estimates store q3a
xtabond2  l1nwageshare npolity2 nwageshare lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(npolity2 nwageshare lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration, lag (3 3)) iv(_Iyear*) noleveleq  twostep robust
estimates store q4a
xtabond2  l1nwageshare npolity2 nwageshare l.nwageshare lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(npolity2, lag (3 3)) iv(_Iyear* lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration) noleveleq  twostep robust
estimates store q5a
xtabond2  l1nwageshare npolity2 nwageshare l.nwageshare  lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(npolity2 nwageshare l.nwageshare  lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration, lag (3 3)) iv(_Iyear*) noleveleq twostep robust
estimates store q6a
xtabond2  l1nwageshare npolity2 nwageshare lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(npolity2) iv(_Iyear* lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration) twostep robust
estimates store q1
xtabond2  l1nwageshare npolity2 nwageshare lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(npolity2, lag (2 2)) iv(_Iyear* lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration)twostep robust
estimates store q3
xtabond2  l1nwageshare npolity2 nwageshare lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(npolity2 nwageshare lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration, lag (3 3)) iv(_Iyear*)  twostep robust
estimates store q4
xtabond2  l1nwageshare npolity2 nwageshare l.nwageshare lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(npolity2, lag (3 3)) iv(_Iyear* lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration)twostep robust
estimates store q5
xtabond2  l1nwageshare npolity2 nwageshare l.nwageshare  lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(npolity2 nwageshare l.nwageshare  lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration, lag (3 3)) iv(_Iyear*) twostep robust
estimates store q6
estout q1a q3a q4a q5a q6a q1 q3 q4 q5 q6, cells(b(star fmt(%9.3f)) t(par fmt(%9.2f))) starlevels (* 0.10 ** 0.05 *** 0.01) stats (N)style (tex)

save "C:\Users\carlhk\Dropbox\Carl_Selemon\Replication_Democracy_Inequality_1_year_panel.dta", replace

use "C:\Users\carlhk\Dropbox\Carl_Selemon\Replication_Democracy_Inequality_5_year_panel.dta", clear

*****************************
**** Generate Table A.25 ****
*****************************
xtabond2 l1M_nwageshare M_npolity2 M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_npolity2) iv(M_lnmad_gdpc M_npolity2 M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) noleveleq robust
estimates store b511
xtabond2 l1M_nwageshare M_npolity2 M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration) iv(_Iperiod_*) noleveleq robust
estimates store b521
xtabond2 l1M_nwageshare M_npolity2 M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, lag (2 5)) iv(_Iperiod_*) noleveleq robust
estimates store b531
xtabond2 l1M_nwageshare M_npolity2 M_nwageshare l.M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_npolity2) iv(M_nwageshare l.M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) noleveleq robust
estimates store b541
xtabond2 l1M_nwageshare M_npolity2 M_nwageshare l.M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_npolity2, lag (3 5)) iv(_Iperiod_* M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration) noleveleq robust
estimates store b551
xtabond2 l1M_nwageshare M_npolity2 M_nwageshare l.M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_npolity2 M_nwageshare l.M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration , lag (3 5)) iv(_Iperiod_*) noleveleq robust
estimates store b561
xtabond2 l1M_nwageshare M_npolity2 M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_npolity2) iv(M_lnmad_gdpc M_npolity2 M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) robust
estimates store t511
xtabond2 l1M_nwageshare M_npolity2 M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration) iv(_Iperiod_*) robust
estimates store t521
xtabond2 l1M_nwageshare M_npolity2 M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, lag (2 5)) iv(_Iperiod_*) robust
estimates store t531
xtabond2 l1M_nwageshare M_npolity2 M_nwageshare l.M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_npolity2) iv(M_nwageshare l.M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) robust
estimates store t541
xtabond2 l1M_nwageshare M_npolity2 M_nwageshare l.M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*,  gmm(M_npolity2, lag (3 5)) iv(_Iperiod_* M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration) robust
estimates store t551
xtabond2 l1M_nwageshare M_npolity2 M_nwageshare l.M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_npolity2 M_nwageshare l.M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration , lag (3 5)) iv(_Iperiod_*) robust
estimates store t561
estout  b511 b521 b531 b541 b551 b561 t511 t521 t531 t541 t551 t561, cells(b(star fmt(%9.3f)) t(par fmt(%9.2f))) starlevels (* 0.10 ** 0.05 *** 0.01) stats (N)style (tex)

*****************************
**** Generate Table A.26 ****
*****************************
xtabond2 l1M_nwageshare M_npolity2 M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_npolity2) iv(M_lnmad_gdpc M_npolity2 M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) noleveleq twostep robust
estimates store b511
xtabond2 l1M_nwageshare M_npolity2 M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration) iv(_Iperiod_*) noleveleq twostep robust
estimates store b521
xtabond2 l1M_nwageshare M_npolity2 M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, lag (2 5)) iv(_Iperiod_*) noleveleq twostep robust
estimates store b531
xtabond2 l1M_nwageshare M_npolity2 M_nwageshare l.M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_npolity2) iv(M_nwageshare l.M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) noleveleq twostep robust
estimates store b541
xtabond2 l1M_nwageshare M_npolity2 M_nwageshare l.M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*,  gmm(M_npolity2, lag (3 5)) iv(_Iperiod_* M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration) noleveleq twostep robust
estimates store b551
xtabond2 l1M_nwageshare M_npolity2 M_nwageshare l.M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_npolity2 M_nwageshare l.M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration , lag (3 5)) iv(_Iperiod_*) noleveleq twostep robust
estimates store b561
xtabond2 l1M_nwageshare M_npolity2 M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_npolity2) iv(M_lnmad_gdpc M_npolity2 M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) twostep robust
estimates store t511
xtabond2 l1M_nwageshare M_npolity2 M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration) iv(_Iperiod_*) twostep robust
estimates store t521
xtabond2 l1M_nwageshare M_npolity2 M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, lag (2 5)) iv(_Iperiod_*) twostep robust
estimates store t531
xtabond2 l1M_nwageshare M_npolity2 M_nwageshare l.M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_npolity2) iv(M_nwageshare l.M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) twostep robust
estimates store t541
xtabond2 l1M_nwageshare M_npolity2 M_nwageshare l.M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*,  gmm(M_npolity2, lag (3 5)) iv(_Iperiod_* M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration) twostep robust
estimates store t551
xtabond2 l1M_nwageshare M_npolity2 M_nwageshare l.M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_npolity2 M_nwageshare l.M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration , lag (3 5)) iv(_Iperiod_*) twostep robust
estimates store t561
estout  b511 b521 b531 b541 b551 b561 t511 t521 t531 t541 t551 t561, cells(b(star fmt(%9.3f)) t(par fmt(%9.2f))) starlevels (* 0.10 ** 0.05 *** 0.01) stats (N)style (tex)


*****************************
**** Generate Table A.27 ****
*****************************
xtabond2 l1M_nwageshare M_npolity2 M_nwageshare M_lnmad_gdpc M_bl_asy25mf M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_npolity2) iv(M_lnmad_gdpc M_bl_asy25mf M_npolity2 M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) noleveleq robust
estimates store b511
xtabond2 l1M_nwageshare M_npolity2 M_nwageshare M_lnmad_gdpc M_bl_asy25mf M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_npolity2 M_lnmad_gdpc M_bl_asy25mf M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration) iv(_Iperiod_*) noleveleq robust
estimates store b521
xtabond2 l1M_nwageshare M_npolity2 M_nwageshare M_lnmad_gdpc M_bl_asy25mf M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_npolity2 M_lnmad_gdpc M_bl_asy25mf M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, lag (2 5)) iv(_Iperiod_*) noleveleq robust
estimates store b531
xtabond2 l1M_nwageshare M_npolity2 M_nwageshare l.M_nwageshare M_lnmad_gdpc M_bl_asy25mf M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_npolity2) iv(M_nwageshare l.M_nwageshare M_lnmad_gdpc M_bl_asy25mf M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) noleveleq robust
estimates store b541
xtabond2 l1M_nwageshare M_npolity2 M_nwageshare l.M_nwageshare M_lnmad_gdpc M_bl_asy25mf M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*,  gmm(M_npolity2, lag (3 5)) iv(_Iperiod_* M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration M_bl_asy25mf) noleveleq robust
estimates store b551
xtabond2 l1M_nwageshare M_npolity2 M_nwageshare l.M_nwageshare M_lnmad_gdpc M_bl_asy25mf M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_npolity2 M_nwageshare l.M_nwageshare M_lnmad_gdpc M_bl_asy25mf M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration , lag (3 5)) iv(_Iperiod_*) noleveleq robust
estimates store b561
xtabond2 l1M_nwageshare M_npolity2 M_nwageshare M_lnmad_gdpc M_bl_asy25mf M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_npolity2) iv(M_lnmad_gdpc M_bl_asy25mf M_npolity2 M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) robust
estimates store t511
xtabond2 l1M_nwageshare M_npolity2 M_nwageshare M_lnmad_gdpc M_bl_asy25mf M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_npolity2 M_lnmad_gdpc M_bl_asy25mf M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration) iv(_Iperiod_*) robust
estimates store t521
xtabond2 l1M_nwageshare M_npolity2 M_nwageshare M_lnmad_gdpc M_bl_asy25mf M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_npolity2 M_lnmad_gdpc M_bl_asy25mf M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, lag (2 5)) iv(_Iperiod_*) robust
estimates store t531
xtabond2 l1M_nwageshare M_npolity2 M_nwageshare l.M_nwageshare M_lnmad_gdpc M_bl_asy25mf M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_npolity2) iv(M_nwageshare l.M_nwageshare M_lnmad_gdpc M_bl_asy25mf M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) robust
estimates store t541
xtabond2 l1M_nwageshare M_npolity2 M_nwageshare l.M_nwageshare M_lnmad_gdpc M_bl_asy25mf M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_npolity2, lag (3 5)) iv(_Iperiod_* M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration M_bl_asy25mf) robust
estimates store t551
xtabond2 l1M_nwageshare M_npolity2 M_nwageshare l.M_nwageshare M_lnmad_gdpc M_bl_asy25mf M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_npolity2 M_nwageshare l.M_nwageshare M_lnmad_gdpc M_bl_asy25mf M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration , lag (3 5)) iv(_Iperiod_*) robust
estimates store t561
estout  b511 b521 b531 b541 b551 b561 t511 t521 t531 t541 t551 t561, cells(b(star fmt(%9.3f)) t(par fmt(%9.2f))) starlevels (* 0.10 ** 0.05 *** 0.01) stats (N)style (tex)

*****************************
**** Generate Table A.28 ****
*****************************
xtabond2 l1M_nwageshare M_sip M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_sip) iv(M_lnmad_gdpc M_sip M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) noleveleq robust
estimates store b511
xtabond2 l1M_nwageshare M_sip M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_sip M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration) iv(_Iperiod_*) noleveleq robust
estimates store b521
xtabond2 l1M_nwageshare M_sip M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_sip M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, lag (2 5)) iv(_Iperiod_*) noleveleq robust
estimates store b531
xtabond2 l1M_nwageshare M_sip M_nwageshare l.M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_sip) iv(M_nwageshare l.M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) noleveleq robust
estimates store b541
xtabond2 l1M_nwageshare M_sip M_nwageshare l.M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_sip, lag (3 5)) iv(M_lnmad_gdpc M_sip M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) noleveleq robust
estimates store b551
xtabond2 l1M_nwageshare M_sip M_nwageshare l.M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_sip M_nwageshare l.M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration , lag (3 5)) iv(_Iperiod_*) noleveleq robust
estimates store b561
xtabond2 l1M_nwageshare M_sip M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_sip) iv(M_lnmad_gdpc M_sip M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) robust
estimates store t511
xtabond2 l1M_nwageshare M_sip M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_sip M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration) iv(_Iperiod_*) robust
estimates store t521
xtabond2 l1M_nwageshare M_sip M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_sip M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, lag (2 5)) iv(_Iperiod_*) robust
estimates store t531
xtabond2 l1M_nwageshare M_sip M_nwageshare l.M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_sip) iv(M_nwageshare l.M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) robust
estimates store t541
xtabond2 l1M_nwageshare M_sip M_nwageshare l.M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_sip, lag (3 5)) iv(M_lnmad_gdpc M_sip M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) robust
estimates store t551
xtabond2 l1M_nwageshare M_sip M_nwageshare l.M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_sip M_nwageshare l.M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration , lag (3 5)) iv(_Iperiod_*) robust
estimates store t561
estout  b511 b521 b531 b541 b551 b561 t511 t521 t531 t541 t551 t561, cells(b(star fmt(%9.3f)) t(par fmt(%9.2f))) starlevels (* 0.10 ** 0.05 *** 0.01) stats (N)style (tex)

*****************************
**** Generate Table A.29 ****
*****************************
xtabond2 l1M_nwageshare M_fhi M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_fhi) iv(M_lnmad_gdpc M_fhi M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) noleveleq robust
estimates store b511
xtabond2 l1M_nwageshare M_fhi M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_fhi M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration) iv(_Iperiod_*) noleveleq robust
estimates store b521
xtabond2 l1M_nwageshare M_fhi M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_fhi M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, lag (2 5)) iv(_Iperiod_*) noleveleq robust
estimates store b531
xtabond2 l1M_nwageshare M_fhi M_nwageshare l.M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_fhi) iv(M_nwageshare l.M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) noleveleq robust
estimates store b541
xtabond2 l1M_nwageshare M_fhi M_nwageshare l.M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_fhi, lag (3 5)) iv(M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) noleveleq robust
estimates store b551
xtabond2 l1M_nwageshare M_fhi M_nwageshare l.M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_fhi M_nwageshare l.M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration , lag (3 5)) iv(_Iperiod_*) noleveleq robust
estimates store b561
xtabond2 l1M_nwageshare M_fhi M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_fhi) iv(M_lnmad_gdpc M_fhi M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) robust
estimates store t511
xtabond2 l1M_nwageshare M_fhi M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_fhi M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration) iv(_Iperiod_*) robust
estimates store t521
xtabond2 l1M_nwageshare M_fhi M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_fhi M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, lag (2 5)) iv(_Iperiod_*) robust
estimates store t531
xtabond2 l1M_nwageshare M_fhi M_nwageshare l.M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_fhi) iv(M_nwageshare l.M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) robust
estimates store t541
xtabond2 l1M_nwageshare M_fhi M_nwageshare l.M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_fhi, lag (3 5)) iv(M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) robust
estimates store t551
xtabond2 l1M_nwageshare M_fhi M_nwageshare l.M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_fhi M_nwageshare l.M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration , lag (3 5)) iv(_Iperiod_*) robust
estimates store t561
estout  b511 b521 b531 b541 b551 b561 t511 t521 t531 t541 t551 t561, cells(b(star fmt(%9.3f)) t(par fmt(%9.2f))) starlevels (* 0.10 ** 0.05 *** 0.01) stats (N)style (tex)

*****************************
**** Generate Table A.30 ****
*****************************
xtabond2 l1M_nwageshare M_uds_mean M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_uds_mean) iv(M_lnmad_gdpc M_uds_mean M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) noleveleq robust
estimates store b511
xtabond2 l1M_nwageshare M_uds_mean M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_uds_mean M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration) iv(_Iperiod_*) noleveleq robust
estimates store b521
xtabond2 l1M_nwageshare M_uds_mean M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_uds_mean M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, lag (2 5)) iv(_Iperiod_*) noleveleq robust
estimates store b531
xtabond2 l1M_nwageshare M_uds_mean M_nwageshare l.M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_uds_mean) iv(M_nwageshare l.M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) noleveleq robust
estimates store b541
xtabond2 l1M_nwageshare M_uds_mean M_nwageshare l.M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_uds_mean, lag (3 5)) iv(M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) noleveleq robust
estimates store b551
xtabond2 l1M_nwageshare M_uds_mean M_nwageshare l.M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_uds_mean M_nwageshare l.M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration , lag (3 5)) iv(_Iperiod_*) noleveleq robust
estimates store b561
xtabond2 l1M_nwageshare M_uds_mean M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_uds_mean) iv(M_lnmad_gdpc M_uds_mean M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) robust
estimates store t511
xtabond2 l1M_nwageshare M_uds_mean M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_uds_mean M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration) iv(_Iperiod_*) robust
estimates store t521
xtabond2 l1M_nwageshare M_uds_mean M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_uds_mean M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, lag (2 5)) iv(_Iperiod_*) robust
estimates store t531
xtabond2 l1M_nwageshare M_uds_mean M_nwageshare l.M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_uds_mean) iv(M_nwageshare l.M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) robust
estimates store t541
xtabond2 l1M_nwageshare M_uds_mean M_nwageshare l.M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*,  gmm(M_uds_mean, lag (3 5)) iv(M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) robust
estimates store t551
xtabond2 l1M_nwageshare M_uds_mean M_nwageshare l.M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_uds_mean M_nwageshare l.M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration , lag (3 5)) iv(_Iperiod_*) robust
estimates store t561
estout  b511 b521 b531 b541 b551 b561 t511 t521 t531 t541 t551 t561, cells(b(star fmt(%9.3f)) t(par fmt(%9.2f))) starlevels (* 0.10 ** 0.05 *** 0.01) stats (N)style (tex)

*****************************
**** Generate Table A.31 ****
*****************************
xtabond2 l1M_solt_ginmar M_npolity2 M_solt_ginmar M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_npolity2) iv(M_lnmad_gdpc M_npolity2 M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) noleveleq robust
estimates store b511
xtabond2 l1M_solt_ginmar M_npolity2 M_solt_ginmar M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_solt_ginmar M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration) iv(_Iperiod_*) noleveleq robust
estimates store b521
xtabond2 l1M_solt_ginmar M_npolity2 M_solt_ginmar M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_solt_ginmar M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, lag (2 5)) iv(_Iperiod_*) noleveleq robust
estimates store b531
xtabond2 l1M_solt_ginmar M_npolity2 M_solt_ginmar l.M_solt_ginmar M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_npolity2) iv(M_solt_ginmar l.M_solt_ginmar M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) noleveleq robust
estimates store b541
xtabond2 l1M_solt_ginmar M_npolity2 M_solt_ginmar l.M_solt_ginmar M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*,  gmm(M_npolity2, lag (3 5)) iv(_Iperiod_* M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration) noleveleq robust
estimates store b551
xtabond2 l1M_solt_ginmar M_npolity2 M_solt_ginmar l.M_solt_ginmar M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_npolity2 M_solt_ginmar l.M_solt_ginmar M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration , lag (3 5)) iv(_Iperiod_*) noleveleq robust
estimates store b561
xtabond2 l1M_solt_ginmar M_npolity2 M_solt_ginmar M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_npolity2) iv(M_lnmad_gdpc M_npolity2 M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) robust
estimates store t511
xtabond2 l1M_solt_ginmar M_npolity2 M_solt_ginmar M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_solt_ginmar M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration) iv(_Iperiod_*) robust
estimates store t521
xtabond2 l1M_solt_ginmar M_npolity2 M_solt_ginmar M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_solt_ginmar M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, lag (2 5)) iv(_Iperiod_*) robust
estimates store t531
xtabond2 l1M_solt_ginmar M_npolity2 M_solt_ginmar l.M_solt_ginmar M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_npolity2) iv(M_solt_ginmar l.M_solt_ginmar M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) robust
estimates store t541
xtabond2 l1M_solt_ginmar M_npolity2 M_solt_ginmar l.M_solt_ginmar M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_npolity2, lag (3 5)) iv(_Iperiod_* M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration) robust
estimates store t551
xtabond2 l1M_solt_ginmar M_npolity2 M_solt_ginmar l.M_solt_ginmar M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_npolity2 M_solt_ginmar l.M_solt_ginmar M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration , lag (3 5)) iv(_Iperiod_*) robust
estimates store t561
estout  b511 b521 b531 b541 b551 b561 t511 t521 t531 t541 t551 t561, cells(b(star fmt(%9.3f)) t(par fmt(%9.2f))) starlevels (* 0.10 ** 0.05 *** 0.01) stats (N)style (tex)

*****************************
**** Generate Table A.32 ****
*****************************
xtabond2 l1M_solt_ginet M_npolity2 M_solt_ginet M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_npolity2) iv(M_lnmad_gdpc M_npolity2 M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) noleveleq robust
estimates store b511
xtabond2 l1M_solt_ginet M_npolity2 M_solt_ginet M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_solt_ginet M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration) iv(_Iperiod_*) noleveleq robust
estimates store b521
xtabond2 l1M_solt_ginet M_npolity2 M_solt_ginet M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_solt_ginet M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, lag (2 5)) iv(_Iperiod_*) noleveleq robust
estimates store b531
xtabond2 l1M_solt_ginet M_npolity2 M_solt_ginet l.M_solt_ginet M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_npolity2) iv(M_solt_ginet l.M_solt_ginet M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) noleveleq robust
estimates store b541
xtabond2 l1M_solt_ginet M_npolity2 M_solt_ginet l.M_solt_ginet M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*,  gmm(M_npolity2, lag (3 5)) iv(_Iperiod_* M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration) noleveleq robust
estimates store b551
xtabond2 l1M_solt_ginet M_npolity2 M_solt_ginet l.M_solt_ginet M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_npolity2 M_solt_ginet l.M_solt_ginet M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration , lag (3 5)) iv(_Iperiod_*) noleveleq robust
estimates store b561
xtabond2 l1M_solt_ginet M_npolity2 M_solt_ginet M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_npolity2) iv(M_lnmad_gdpc M_npolity2 M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) robust
estimates store t511
xtabond2 l1M_solt_ginet M_npolity2 M_solt_ginet M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_solt_ginet M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration) iv(_Iperiod_*) robust
estimates store t521
xtabond2 l1M_solt_ginet M_npolity2 M_solt_ginet M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_solt_ginet M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, lag (2 5)) iv(_Iperiod_*) robust
estimates store t531
xtabond2 l1M_solt_ginet M_npolity2 M_solt_ginet l.M_solt_ginet M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_npolity2) iv(M_solt_ginet l.M_solt_ginet M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) robust
estimates store t541
xtabond2 l1M_solt_ginet M_npolity2 M_solt_ginet l.M_solt_ginet M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_npolity2, lag (3 5)) iv(_Iperiod_* M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration) robust
estimates store t551
xtabond2 l1M_solt_ginet M_npolity2 M_solt_ginet l.M_solt_ginet M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_npolity2 M_solt_ginet l.M_solt_ginet M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration , lag (3 5)) iv(_Iperiod_*) robust
estimates store t561
estout  b511 b521 b531 b541 b551 b561 t511 t521 t531 t541 t551 t561, cells(b(star fmt(%9.3f)) t(par fmt(%9.2f))) starlevels (* 0.10 ** 0.05 *** 0.01) stats (N)style (tex)

*****************************
**** Generate Table A.33 ****
*****************************
xtabond2 l1M_wdi_gini M_npolity2 M_wdi_gini M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_npolity2) iv(M_lnmad_gdpc M_npolity2 M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) noleveleq robust
estimates store b511
xtabond2 l1M_wdi_gini M_npolity2 M_wdi_gini M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_wdi_gini M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration) iv(_Iperiod_*) noleveleq robust
estimates store b521
xtabond2 l1M_wdi_gini M_npolity2 M_wdi_gini M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_wdi_gini M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, lag (2 5)) iv(_Iperiod_*) noleveleq robust
estimates store b531
xtabond2 l1M_wdi_gini M_npolity2 M_wdi_gini l.M_wdi_gini M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_npolity2) iv(M_wdi_gini l.M_wdi_gini M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) noleveleq robust
estimates store b541
xtabond2 l1M_wdi_gini M_npolity2 M_wdi_gini l.M_wdi_gini M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*,  gmm(M_npolity2, lag (3 5)) iv(_Iperiod_* M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration) noleveleq robust
estimates store b551
xtabond2 l1M_wdi_gini M_npolity2 M_wdi_gini l.M_wdi_gini M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_npolity2 M_wdi_gini l.M_wdi_gini M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration , lag (3 5)) iv(_Iperiod_*) noleveleq robust
estimates store b561
xtabond2 l1M_wdi_gini M_npolity2 M_wdi_gini M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_npolity2) iv(M_lnmad_gdpc M_npolity2 M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) robust
estimates store t511
xtabond2 l1M_wdi_gini M_npolity2 M_wdi_gini M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_wdi_gini M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration) iv(_Iperiod_*) robust
estimates store t521
xtabond2 l1M_wdi_gini M_npolity2 M_wdi_gini M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_wdi_gini M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, lag (2 5)) iv(_Iperiod_*) robust
estimates store t531
xtabond2 l1M_wdi_gini M_npolity2 M_wdi_gini l.M_wdi_gini M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_npolity2) iv(M_wdi_gini l.M_wdi_gini M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) robust
estimates store t541
xtabond2 l1M_wdi_gini M_npolity2 M_wdi_gini l.M_wdi_gini M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*,  gmm(M_npolity2, lag (3 5)) iv(_Iperiod_* M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration) robust
estimates store t551
xtabond2 l1M_wdi_gini M_npolity2 M_wdi_gini l.M_wdi_gini M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_npolity2 M_wdi_gini l.M_wdi_gini M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration , lag (3 5)) iv(_Iperiod_*) robust
estimates store t561
estout  b511 b521 b531 b541 b551 b561 t511 t521 t531 t541 t551 t561, cells(b(star fmt(%9.3f)) t(par fmt(%9.2f))) starlevels (* 0.10 ** 0.05 *** 0.01) stats (N)style (tex)

*****************************
**** Generate Table A.34 ****
*****************************
xtabond2 l1M_utip_ehii M_npolity2 M_utip_ehii M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_npolity2) iv(M_lnmad_gdpc M_npolity2 M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) noleveleq robust
estimates store b511
xtabond2 l1M_utip_ehii M_npolity2 M_utip_ehii M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_utip_ehii M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration) iv(_Iperiod_*) noleveleq robust
estimates store b521
xtabond2 l1M_utip_ehii M_npolity2 M_utip_ehii M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_utip_ehii M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, lag (2 5)) iv(_Iperiod_*) noleveleq robust
estimates store b531
xtabond2 l1M_utip_ehii M_npolity2 M_utip_ehii l.M_utip_ehii M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_npolity2) iv(M_utip_ehii l.M_utip_ehii M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) noleveleq robust
estimates store b541
xtabond2 l1M_utip_ehii M_npolity2 M_utip_ehii l.M_utip_ehii M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*,  gmm(M_npolity2, lag (3 5)) iv(_Iperiod_* M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration) noleveleq robust
estimates store b551
xtabond2 l1M_utip_ehii M_npolity2 M_utip_ehii l.M_utip_ehii M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_npolity2 M_utip_ehii l.M_utip_ehii M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration , lag (3 5)) iv(_Iperiod_*) noleveleq robust
estimates store b561
xtabond2 l1M_utip_ehii M_npolity2 M_utip_ehii M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_npolity2) iv(M_lnmad_gdpc M_npolity2 M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) robust
estimates store t511
xtabond2 l1M_utip_ehii M_npolity2 M_utip_ehii M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_utip_ehii M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration) iv(_Iperiod_*) robust
estimates store t521
xtabond2 l1M_utip_ehii M_npolity2 M_utip_ehii M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_utip_ehii M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, lag (2 5)) iv(_Iperiod_*) robust
estimates store t531
xtabond2 l1M_utip_ehii M_npolity2 M_utip_ehii l.M_utip_ehii M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_npolity2) iv(M_utip_ehii l.M_utip_ehii M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) robust
estimates store t541
xtabond2 l1M_utip_ehii M_npolity2 M_utip_ehii l.M_utip_ehii M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*,  gmm(M_npolity2, lag (3 5)) iv(_Iperiod_* M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration) robust
estimates store t551
xtabond2 l1M_utip_ehii M_npolity2 M_utip_ehii l.M_utip_ehii M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_npolity2 M_utip_ehii l.M_utip_ehii M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration , lag (3 5)) iv(_Iperiod_*) robust
estimates store t561
estout  b511 b521 b531 b541 b551 b561 t511 t521 t531 t541 t551 t561, cells(b(star fmt(%9.3f)) t(par fmt(%9.2f))) starlevels (* 0.10 ** 0.05 *** 0.01) stats (N)style (tex)

*****************************
**** Generate Table A.35 ****
*****************************
xtabond2 l1M_Gini_rep2 M_npolity2 M_Gini_rep2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_npolity2) iv(M_lnmad_gdpc M_npolity2 M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) noleveleq robust
estimates store b511
xtabond2 l1M_Gini_rep2 M_npolity2 M_Gini_rep2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_Gini_rep2 M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration) iv(_Iperiod_*) noleveleq robust
estimates store b521
xtabond2 l1M_Gini_rep2 M_npolity2 M_Gini_rep2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_Gini_rep2 M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, lag (2 5)) iv(_Iperiod_*) noleveleq robust
estimates store b531
xtabond2 l1M_Gini_rep2 M_npolity2 M_Gini_rep2 l.M_Gini_rep2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_npolity2) iv(M_Gini_rep2 l.M_Gini_rep2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) noleveleq robust
estimates store b541
xtabond2 l1M_Gini_rep2 M_npolity2 M_Gini_rep2 l.M_Gini_rep2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*,  gmm(M_npolity2, lag (3 5)) iv(_Iperiod_* M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration) noleveleq robust
estimates store b551
xtabond2 l1M_Gini_rep2 M_npolity2 M_Gini_rep2 l.M_Gini_rep2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_npolity2 M_Gini_rep2 l.M_Gini_rep2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration , lag (3 5)) iv(_Iperiod_*) noleveleq robust
estimates store b561
xtabond2 l1M_Gini_rep2 M_npolity2 M_Gini_rep2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_npolity2) iv(M_lnmad_gdpc M_npolity2 M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) robust
estimates store t511
xtabond2 l1M_Gini_rep2 M_npolity2 M_Gini_rep2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_Gini_rep2 M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration) iv(_Iperiod_*) robust
estimates store t521
xtabond2 l1M_Gini_rep2 M_npolity2 M_Gini_rep2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_Gini_rep2 M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, lag (2 5)) iv(_Iperiod_*) robust
estimates store t531
xtabond2 l1M_Gini_rep2 M_npolity2 M_Gini_rep2 l.M_Gini_rep2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_npolity2) iv(M_Gini_rep2 l.M_Gini_rep2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) robust
estimates store t541
xtabond2 l1M_Gini_rep2 M_npolity2 M_Gini_rep2 l.M_Gini_rep2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*,  gmm(M_npolity2, lag (3 5)) iv(_Iperiod_* M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration) robust
estimates store t551
xtabond2 l1M_Gini_rep2 M_npolity2 M_Gini_rep2 l.M_Gini_rep2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_npolity2 M_Gini_rep2 l.M_Gini_rep2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration , lag (3 5)) iv(_Iperiod_*) robust
estimates store t561
estout  b511 b521 b531 b541 b551 b561 t511 t521 t531 t541 t551 t561, cells(b(star fmt(%9.3f)) t(par fmt(%9.2f))) starlevels (* 0.10 ** 0.05 *** 0.01) stats (N ar2 j)style (tex)
save "C:\Users\carlhk\Dropbox\Carl_Selemon\Replication_Democracy_Inequality_5_year_panel.dta", replace

**********************
**** APPENDIX A.5 ****
**********************

*****************************
**** Generate Table A.36 ****
*****************************
use "C:\Users\carlhk\Dropbox\Carl_Selemon\Replication_Democracy_Inequality_Imputed_1_year_panel.dta", clear
mi estimate, post cmdok: xtpcse l1npolity2 nwageshare lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration, correlation(psar1) hetonly pairwise
estimates store oa
mi estimate, post cmdok: xtpcse  l1npolity2 nwageshare lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, correlation(psar1) hetonly pairwise
estimates store ob
mi estimate, post cmdok: xtpcse l1npolity2 nwageshare lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration al_ethnic easteursov africass asiapac mideanafr latam britishameric french portugese spanish belgian _Iyear*, correlation(psar1) hetonly pairwise
estimates store oc
mi estimate, post cmdok: xtreg l1npolity2 nwageshare lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, fe cluster(gwno)
estimates store od
mi estimate, post cmdok: xtpcse l1nwageshare npolity2 lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration, correlation(psar1) hetonly pairwise
estimates store oe
mi estimate, post cmdok: xtpcse  l1nwageshare npolity2 lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, correlation(psar1) hetonly pairwise
estimates store of
mi estimate, post cmdok: xtpcse l1nwageshare npolity2 lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration al_ethnic easteursov africass asiapac mideanafr latam britishameric french portugese spanish belgian _Iyear*, correlation(psar1) hetonly pairwise
estimates store og
mi estimate, post cmdok: xtreg l1nwageshare npolity2 lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, fe cluster(gwno)
estimates store oh
estout  oa oc od oe og oh, cells(b(star fmt(%9.3f)) t(par fmt(%9.2f))) starlevels (* 0.10 ** 0.05 *** 0.01) stats (N)style (tex)

*****************************
**** Generate Table A.37 ****
*****************************
mi estimate, post cmdok: xtabond2  l1npolity2 nwageshare npolity2 lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(nwageshare) iv(_Iyear* lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration) noleveleq  robust
estimates store q1a
mi estimate, post cmdok: xtabond2  l1npolity2 nwageshare npolity2 lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(nwageshare, lag (2 2)) iv(_Iyear* lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration) noleveleq  robust
estimates store q3a
mi estimate, post cmdok: xtabond2  l1npolity2 nwageshare npolity2 lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(npolity2 nwageshare lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration, lag (3 3)) iv(_Iyear*) noleveleq   robust
estimates store q4a
mi estimate, post cmdok: xtabond2  l1npolity2 nwageshare npolity2 l.npolity2  lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(nwageshare, lag (3 3)) iv(_Iyear* lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration) noleveleq   robust
estimates store q5a
mi estimate, post cmdok: xtabond2  l1npolity2 nwageshare npolity2  l.npolity2   lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(npolity2 nwageshare l.nwageshare  lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration, lag (3 3)) iv(_Iyear*) noleveleq  robust
estimates store q6a
mi estimate, post cmdok: xtabond2  l1npolity2 nwageshare npolity2  lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(nwageshare) iv(_Iyear* lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration) robust
estimates store q1
mi estimate, post cmdok: xtabond2  l1npolity2 nwageshare npolity2 lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(nwageshare, lag (2 2)) iv(_Iyear* lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration) robust
estimates store q3
mi estimate, post cmdok: xtabond2  l1npolity2 nwageshare npolity2 lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(npolity2 nwageshare lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration, lag (3 3)) iv(_Iyear*) robust
estimates store q4
mi estimate, post cmdok: xtabond2  l1npolity2 nwageshare npolity2 l.npolity2  lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(nwageshare, lag (3 3)) iv(_Iyear* lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration)  robust
estimates store q5
mi estimate, post cmdok: xtabond2  l1npolity2 nwageshare npolity2 l.npolity2   lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(npolity2 nwageshare l.nwageshare  lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration, lag (3 3)) iv(_Iyear*)  robust
estimates store q6
estout q1a q3a q4a q5a q6a q1 q3 q4 q5 q6, cells(b(star fmt(%9.3f)) t(par fmt(%9.2f))) starlevels (* 0.10 ** 0.05 *** 0.01) stats (N j)style (tex)

*****************************
**** Generate Table A.38 ****
*****************************
mi estimate, post cmdok: xtabond2  l1npolity2 solt_ginmar npolity2 lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(solt_ginmar) iv(_Iyear* lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration) noleveleq  robust
estimates store q1a
mi estimate, post cmdok: xtabond2  l1npolity2 solt_ginmar npolity2 lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(solt_ginmar, lag (2 2)) iv(_Iyear* lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration) noleveleq  robust
estimates store q3a
mi estimate, post cmdok: xtabond2  l1npolity2 solt_ginmar npolity2 lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(npolity2 solt_ginmar lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration, lag (3 3)) iv(_Iyear*) noleveleq  robust
estimates store q4a
mi estimate, post cmdok: xtabond2  l1npolity2 solt_ginmar npolity2 l.npolity2  lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(solt_ginmar, lag (3 3)) iv(_Iyear* lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration) noleveleq  robust
estimates store q5a
mi estimate, post cmdok: xtabond2  l1npolity2 solt_ginmar npolity2  l.npolity2   lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(npolity2 solt_ginmar l.solt_ginmar  lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration, lag (3 3)) iv(_Iyear*) noleveleq robust
estimates store q6a
mi estimate, post cmdok: xtabond2  l1npolity2 solt_ginmar npolity2  lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(solt_ginmar) iv(_Iyear* lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration)  robust
estimates store q1
mi estimate, post cmdok: xtabond2  l1npolity2 solt_ginmar npolity2 lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(solt_ginmar, lag (2 2)) iv(_Iyear* lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration) robust
estimates store q3
mi estimate, post cmdok: xtabond2  l1npolity2 solt_ginmar npolity2 lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(npolity2 solt_ginmar lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration, lag (3 3)) iv(_Iyear*) robust
estimates store q4
mi estimate, post cmdok: xtabond2  l1npolity2 solt_ginmar npolity2 l.npolity2  lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(solt_ginmar, lag (3 3)) iv(_Iyear* lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration)  robust
estimates store q5
mi estimate, post cmdok: xtabond2  l1npolity2 solt_ginmar npolity2 l.npolity2   lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(npolity2 solt_ginmar l.solt_ginmar  lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration, lag (3 3)) iv(_Iyear*)  robust
estimates store q6
estout q1a q3a q4a q5a q6a q1 q3 q4 q5 q6, cells(b(star fmt(%9.3f)) t(par fmt(%9.2f))) starlevels (* 0.10 ** 0.05 *** 0.01) stats (N j)style (tex)
save "C:\Users\carlhk\Dropbox\Carl_Selemon\Replication_Democracy_Inequality_Imputed_1_year_panel.dta", replace

*****************************
**** Generate Table A.39 ****
*****************************
use "C:\Users\carlhk\Dropbox\Carl_Selemon\Replication_Democracy_Inequality_Imputed_5_year_panel.dta", clear

xtabond2 l1M_npolity2 M_npolity2 M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare) iv(M_lnmad_gdpc M_npolity2 M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) noleveleq robust
estimates store a51
xtabond2 l1M_npolity2 M_npolity2 M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration) iv(_Iperiod_*) noleveleq robust
estimates store a52
xtabond2 l1M_npolity2 M_npolity2 M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, lag (2 5)) iv(_Iperiod_*) noleveleq robust
estimates store a53
xtabond2 l1M_npolity2 M_npolity2 l.M_npolity2 M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare) iv(M_npolity2 l.M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) noleveleq robust
estimates store a54
xtabond2 l1M_npolity2 M_npolity2 M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, lag (3 5)) iv(_Iperiod_*) noleveleq robust
estimates store a55
xtabond2 l1M_npolity2 M_npolity2 l.M_npolity2 M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_npolity2 l.M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration , lag (3 5)) iv(_Iperiod_*) noleveleq robust
estimates store a56
xtabond2 l1M_npolity2 M_npolity2 M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare) iv(M_lnmad_gdpc M_npolity2 M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) robust
estimates store s51
xtabond2 l1M_npolity2 M_npolity2 M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration) iv(_Iperiod_*) robust
estimates store s52
xtabond2 l1M_npolity2 M_npolity2 M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, lag (2 5)) iv(_Iperiod_*) robust
estimates store s53
xtabond2 l1M_npolity2 M_npolity2 l.M_npolity2 M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare) iv(M_npolity2 l.M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) robust
estimates store s54
xtabond2 l1M_npolity2 M_npolity2 M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, lag (3 5)) iv(_Iperiod_*) robust
estimates store s55
xtabond2 l1M_npolity2 M_npolity2 l.M_npolity2 M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_npolity2 l.M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration , lag (3 5)) iv(_Iperiod_*) robust
estimates store s56
estout  a51 a52 a53 a54 a55 a56 s51 s52 s53 s54 s55 s56, cells(b(star fmt(%9.3f)) t(par fmt(%9.2f))) starlevels (* 0.10 ** 0.05 *** 0.01) stats (N j)style (tex)

save "C:\Users\carlhk\Dropbox\Carl_Selemon\Replication_Democracy_Inequality_Imputed_5_year_panel.dta", replace

*****************************
**** Generate Table A.40 ****
*****************************
use "C:\Users\carlhk\Dropbox\Carl_Selemon\Replication_Democracy_Inequality_Imputed_1_year_panel.dta", clear

mi estimate, post cmdok: xtabond2  l1nwageshare npolity2 nwageshare lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(npolity2) iv(_Iyear* lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration) noleveleq  robust
estimates store q1a
mi estimate, post cmdok: xtabond2  l1nwageshare npolity2 nwageshare lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(npolity2, lag (2 2)) iv(_Iyear* lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration) noleveleq  robust
estimates store q3a
mi estimate, post cmdok: xtabond2  l1nwageshare npolity2 nwageshare lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(npolity2 nwageshare lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration, lag (3 3)) iv(_Iyear*) noleveleq  robust
estimates store q4a
mi estimate, post cmdok: xtabond2  l1nwageshare npolity2 nwageshare l.nwageshare lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(npolity2, lag (3 3)) iv(_Iyear* lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration) noleveleq  robust
estimates store q5a
mi estimate, post cmdok: xtabond2  l1nwageshare npolity2 nwageshare l.nwageshare  lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(npolity2 nwageshare l.nwageshare  lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration, lag (3 3)) iv(_Iyear*) noleveleq robust
estimates store q6a
mi estimate, post cmdok: xtabond2  l1nwageshare npolity2 nwageshare lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(npolity2) iv(_Iyear* lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration)  robust
estimates store q1
mi estimate, post cmdok: xtabond2  l1nwageshare npolity2 nwageshare lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(npolity2, lag (2 2)) iv(_Iyear* lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration) robust
estimates store q3
mi estimate, post cmdok: xtabond2  l1nwageshare npolity2 nwageshare lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(npolity2 nwageshare lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration, lag (3 3)) iv(_Iyear*)  robust
estimates store q4
mi estimate, post cmdok: xtabond2  l1nwageshare npolity2 nwageshare l.nwageshare lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(npolity2, lag (3 3)) iv(_Iyear* lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration)  robust
estimates store q5
mi estimate, post cmdok: xtabond2  l1nwageshare npolity2 nwageshare l.nwageshare  lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(npolity2 nwageshare l.nwageshare  lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration, lag (3 3)) iv(_Iyear*) robust
estimates store q6
estout q1a q3a q4a q5a q6a q1 q3 q4 q5 q6, cells(b(star fmt(%9.3f)) t(par fmt(%9.2f))) starlevels (* 0.10 ** 0.05 *** 0.01) stats (N j)style (tex)

*****************************
**** Generate Table A.41 ****
*****************************
mi estimate, post cmdok: xtabond2  l1solt_ginmar npolity2 solt_ginmar lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(npolity2) iv(_Iyear* lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration) noleveleq  robust
estimates store q1a
mi estimate, post cmdok: xtabond2  l1solt_ginmar npolity2 solt_ginmar lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(npolity2, lag (2 2)) iv(_Iyear* lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration) noleveleq  robust
estimates store q3a
mi estimate, post cmdok: xtabond2  l1solt_ginmar npolity2 solt_ginmar lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(npolity2 solt_ginmar lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration, lag (3 3)) iv(_Iyear*) noleveleq  robust
estimates store q4a
mi estimate, post cmdok: xtabond2  l1solt_ginmar npolity2 solt_ginmar l.solt_ginmar lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(npolity2, lag (3 3)) iv(_Iyear* lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration) noleveleq  robust
estimates store q5a
mi estimate, post cmdok: xtabond2  l1solt_ginmar npolity2 solt_ginmar l.solt_ginmar  lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(npolity2 solt_ginmar l.solt_ginmar  lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration, lag (3 3)) iv(_Iyear*) noleveleq robust
estimates store q6a
mi estimate, post cmdok: xtabond2  l1solt_ginmar npolity2 solt_ginmar lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(npolity2) iv(_Iyear* lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration)  robust
estimates store q1
mi estimate, post cmdok: xtabond2  l1solt_ginmar npolity2 solt_ginmar lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(npolity2, lag (2 2)) iv(_Iyear* lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration)  robust
estimates store q3
mi estimate, post cmdok: xtabond2  l1solt_ginmar npolity2 solt_ginmar lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(npolity2 solt_ginmar lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration, lag (3 3)) iv(_Iyear*)  robust
estimates store q4
mi estimate, post cmdok: xtabond2  l1solt_ginmar npolity2 solt_ginmar l.solt_ginmar lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(npolity2, lag (3 3)) iv(_Iyear* lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration)  robust
estimates store q5
mi estimate, post cmdok: xtabond2  l1solt_ginmar npolity2 solt_ginmar l.solt_ginmar  lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(npolity2 solt_ginmar l.solt_ginmar  lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration, lag (3 3)) iv(_Iyear*)  robust
estimates store q6
estout q1a q3a q4a q5a q6a q1 q3 q4 q5 q6, cells(b(star fmt(%9.3f)) t(par fmt(%9.2f))) starlevels (* 0.10 ** 0.05 *** 0.01) stats (N j)style (tex)

save "C:\Users\carlhk\Dropbox\Carl_Selemon\Replication_Democracy_Inequality_Imputed_1_year_panel.dta", replace

*****************************
**** Generate Table A.42 ****
*****************************
use "C:\Users\carlhk\Dropbox\Carl_Selemon\Replication_Democracy_Inequality_Imputed_5_year_panel.dta", clear

xtabond2 l1M_nwageshare M_npolity2 M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_npolity2) iv(M_lnmad_gdpc M_npolity2 M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) noleveleq robust
estimates store b511
xtabond2 l1M_nwageshare M_npolity2 M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration) iv(_Iperiod_*) noleveleq robust
estimates store b521
xtabond2 l1M_nwageshare M_npolity2 M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, lag (2 5)) iv(_Iperiod_*) noleveleq robust
estimates store b531
xtabond2 l1M_nwageshare M_npolity2 M_nwageshare l.M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_npolity2) iv(M_nwageshare l.M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) noleveleq robust
estimates store b541
xtabond2 l1M_nwageshare M_npolity2 M_nwageshare l.M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_npolity2, lag (3 5)) iv( M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) noleveleq robust
estimates store b551
xtabond2 l1M_nwageshare M_npolity2 M_nwageshare l.M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_npolity2 M_nwageshare l.M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration , lag (3 5)) iv(_Iperiod_*) noleveleq robust
estimates store b561
xtabond2 l1M_nwageshare M_npolity2 M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_npolity2) iv(M_lnmad_gdpc M_npolity2 M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) robust
estimates store t511
xtabond2 l1M_nwageshare M_npolity2 M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration) iv(_Iperiod_*) robust
estimates store t521
xtabond2 l1M_nwageshare M_npolity2 M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_nwageshare M_npolity2 M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration, lag (2 5)) iv(_Iperiod_*) robust
estimates store t531
xtabond2 l1M_nwageshare M_npolity2 M_nwageshare l.M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_npolity2) iv(M_nwageshare l.M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) robust
estimates store t541
xtabond2 l1M_nwageshare M_npolity2 M_nwageshare l.M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_npolity2, lag (3 5)) iv( M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*) robust
estimates store t551
xtabond2 l1M_nwageshare M_npolity2 M_nwageshare l.M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration _Iperiod_*, gmm(M_npolity2 M_nwageshare l.M_nwageshare M_lnmad_gdpc M_lnmad_gdpc_sq M_lnoilgasvalue_pc M_lnmad_pop M_lnduration , lag (3 5)) iv(_Iperiod_*) robust
estimates store t561
estout  b511 b521 b531 b541 b551 b561 t511 t521 t531 t541 t551 t561, cells(b(star fmt(%9.3f)) t(par fmt(%9.2f))) starlevels (* 0.10 ** 0.05 *** 0.01) stats (N j)style (tex)

save "C:\Users\carlhk\Dropbox\Carl_Selemon\Replication_Democracy_Inequality_Imputed_5_year_panel.dta", replace

**********************
**** APPENDIX A.6 ****
**********************

use "C:\Users\carlhk\Dropbox\Carl_Selemon\Replication_Democracy_Inequality_1_year_panel.dta", clear

*****************************
**** Generate Table A.43 ****
*****************************
probit dipolity lagdipolity lagnwageshare pdlnwageshare lagloggdppc pdlloggdppc lagloggdppcsq pdlloggdppcsq lagwdi_resource pdlwdi_resource laglogpop pdllogpop  laglogdur pdllogdur _Iyear* _Pye*, cluster(gwno)
estimates store dp1
lincom lagnwageshare+pdlnwageshare
probit chga_demo lagchga_demo lagnwageshare cdlnwageshare lagloggdppc cdlloggdppc lagloggdppcsq cdlloggdppcsq lagwdi_resource cdlwdi_resource laglogpop cdllogpop  laglogdur cdllogdur _Iye*, cluster(gwno)
estimates store dp3
lincom lagnwageshare+cdlnwageshare
probit dipolity lagdipolity lagngini pdlngini lagloggdppc pdlloggdppc lagloggdppcsq pdlloggdppcsq lagwdi_resource pdlwdi_resource laglogpop pdllogpop  laglogdur pdllogdur _Iyear* _Pye*, cluster(gwno)
estimates store dp5
lincom lagngini+pdlngini
probit dipolity lagdipolity lagnginii pdlnginii lagloggdppc pdlloggdppc lagloggdppcsq pdlloggdppcsq lagwdi_resource pdlwdi_resource laglogpop pdllogpop  laglogdur pdllogdur _Iyear* _Pye*, cluster(gwno)
estimates store dp6
lincom lagnginii+pdlnginii
probit chga_demo lagchga_demo lagngini cdlngini lagloggdppc cdlloggdppc lagloggdppcsq cdlloggdppcsq lagwdi_resource cdlwdi_resource laglogpop cdllogpop  laglogdur cdllogdur _Iye*, cluster(gwno)
estimates store dp7
lincom lagngini+cdlngini
probit chga_demo lagchga_demo lagnginii cdlnginii lagloggdppc cdlloggdppc lagloggdppcsq cdlloggdppcsq lagwdi_resource cdlwdi_resource laglogpop cdllogpop  laglogdur cdllogdur _Iye*, cluster(gwno)
estimates store dp8
lincom lagnginii+cdlnginii
estout  dp1 dp3 dp5 dp6 dp7 dp8, cells(b(star fmt(%9.3f)) t(par fmt(%9.2f))) starlevels (* 0.10 ** 0.05 *** 0.01) stats (N)style (tex)
probit dipolity lagdipolity lagnwageshare pdlnwageshare lagloggdppc pdlloggdppc lagloggdppcsq pdlloggdppcsq lagwdi_resource pdlwdi_resource laglogpop pdllogpop  laglogdur pdllogdur, cluster(gwno)
estimates store dp1t
lincom lagnwageshare+pdlnwageshare
probit chga_demo lagchga_demo lagnwageshare cdlnwageshare lagloggdppc cdlloggdppc lagloggdppcsq cdlloggdppcsq lagwdi_resource cdlwdi_resource laglogpop cdllogpop  laglogdur cdllogdur, cluster(gwno)
estimates store dp3t
lincom lagnwageshare+cdlnwageshare
probit dipolity lagdipolity lagngini pdlngini lagloggdppc pdlloggdppc lagloggdppcsq pdlloggdppcsq lagwdi_resource pdlwdi_resource laglogpop pdllogpop  laglogdur pdllogdur, cluster(gwno)
estimates store dp5t
lincom lagngini+pdlngini
probit dipolity lagdipolity lagnginii pdlnginii lagloggdppc pdlloggdppc lagloggdppcsq pdlloggdppcsq lagwdi_resource pdlwdi_resource laglogpop pdllogpop  laglogdur pdllogdur, cluster(gwno)
estimates store dp6t
lincom lagnginii+pdlnginii
probit chga_demo lagchga_demo lagngini cdlngini lagloggdppc cdlloggdppc lagloggdppcsq cdlloggdppcsq lagwdi_resource cdlwdi_resource laglogpop cdllogpop  laglogdur cdllogdur, cluster(gwno)
estimates store dp7t
lincom lagngini+cdlngini
probit chga_demo lagchga_demo lagnginii cdlnginii lagloggdppc cdlloggdppc lagloggdppcsq cdlloggdppcsq lagwdi_resource cdlwdi_resource laglogpop cdllogpop  laglogdur cdllogdur, cluster(gwno)
estimates store dp8t
lincom lagnginii+cdlnginii
estout dp1t dp1 dp3t dp3 dp6t dp6 dp8t dp8, cells(b(star fmt(%9.3f)) t(par fmt(%9.2f))) starlevels (* 0.10 ** 0.05 *** 0.01) stats (N)style (tex)

save "C:\Users\carlhk\Dropbox\Carl_Selemon\Replication_Democracy_Inequality_1_year_panel.dta", replace

*****************************
**** Generate Table A.44 ****
*****************************
use "C:\Users\carlhk\Dropbox\Carl_Selemon\Replication_Democracy_Inequality_Imputed_1_year_panel.dta", clear
mi estimate, post esampvaryok: probit dipolity lagdipolity lagnwageshare pdlnwageshare lagloggdppc pdlloggdppc lagloggdppcsq pdlloggdppcsq lagwdi_resource pdlwdi_resource laglogpop pdllogpop  laglogdur pdllogdur, cluster(gwno)
estimates store dp1t
lincom lagnwageshare+pdlnwageshare
mi estimate, post esampvaryok: probit chga_demo lagchga_demo lagnwageshare cdlnwageshare lagloggdppc cdlloggdppc lagloggdppcsq cdlloggdppcsq lagwdi_resource cdlwdi_resource laglogpop cdllogpop  laglogdur cdllogdur, cluster(gwno)
estimates store dp3t
lincom lagnwageshare+cdlnwageshare
mi estimate, post esampvaryok: probit dipolity lagdipolity lagngini pdlngini lagloggdppc pdlloggdppc lagloggdppcsq pdlloggdppcsq lagwdi_resource pdlwdi_resource laglogpop pdllogpop  laglogdur pdllogdur, cluster(gwno)
estimates store dp5t
lincom lagngini+pdlngini
mi estimate, post esampvaryok: probit dipolity lagdipolity lagnginii pdlnginii lagloggdppc pdlloggdppc lagloggdppcsq pdlloggdppcsq lagwdi_resource pdlwdi_resource laglogpop pdllogpop  laglogdur pdllogdur, cluster(gwno)
estimates store dp6t
lincom lagnginii+pdlnginii
mi estimate, post esampvaryok: probit chga_demo lagchga_demo lagngini cdlngini lagloggdppc cdlloggdppc lagloggdppcsq cdlloggdppcsq lagwdi_resource cdlwdi_resource laglogpop cdllogpop  laglogdur cdllogdur, cluster(gwno)
estimates store dp7t
lincom lagngini+cdlngini
mi estimate, post esampvaryok: probit chga_demo lagchga_demo lagnginii cdlnginii lagloggdppc cdlloggdppc lagloggdppcsq cdlloggdppcsq lagwdi_resource cdlwdi_resource laglogpop cdllogpop  laglogdur cdllogdur, cluster(gwno)
estimates store dp8t
lincom lagnginii+cdlnginii
estout  dp1t dp6t dp5t dp3t dp8t dp7t, cells(b(star fmt(%9.3f)) t(par fmt(%9.2f))) starlevels (* 0.10 ** 0.05 *** 0.01) stats (N)style (tex)
**NBNB: Please note that there is a mistake in the table note to the table: It states that year dummies and year dummies interacted with lagged regime are omitted from the table, BUT these are not included in the regressions for this table.
save "C:\Users\carlhk\Dropbox\Carl_Selemon\Replication_Democracy_Inequality_Imputed_1_year_panel.dta", replace

*****************************
**** Generate Table A.45 ****
*****************************
use "C:\Users\carlhk\Dropbox\Carl_Selemon\Replication_Democracy_Inequality_1_year_panel.dta", clear

xtpcse l1nwageshare Monarchy Military Oneparty Multiparty Other lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, correlation(psar1) hetonly pairwise
estimates store ht1a
xtpcse l1nsolt_ginmar Monarchy Military Oneparty Multiparty Other lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, correlation(psar1) hetonly pairwise
estimates store ht1b
xtpcse l1nsolt_ginet Monarchy Military Oneparty Multiparty Other lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, correlation(psar1) hetonly pairwise
estimates store ht1c
xtpcse l1solt_redist Monarchy Military Oneparty Multiparty Other lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, correlation(psar1) hetonly pairwise
estimates store ht1cc
estout  ht1a ht1b ht1c ht1cc, cells(b(star fmt(%9.3f)) t(par fmt(%9.2f))) starlevels (* 0.10 ** 0.05 *** 0.01) stats (N)style (tex)

*****************************
**** Generate Table A.46 ****
*****************************
xtabond2 l1nwageshare nwageshare Monarchy Military Oneparty Multiparty Other lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(Monarchy Military Oneparty Multiparty Other, lag (2 2)) iv(lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*) robust
estimates store ht1d
xtabond2 l1nwageshare nwageshare l.nwageshare Monarchy Military Oneparty Multiparty Other lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(Monarchy Military Oneparty Multiparty Other, lag (3 3)) iv(lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*) robust
estimates store ht1d2
xtabond2 l1nsolt_ginmar solt_ginmar Monarchy Military Oneparty Multiparty Other lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(Monarchy Military Oneparty Multiparty Other, lag (2 2)) iv(lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*) robust
estimates store ht1e
xtabond2 l1nsolt_ginmar solt_ginmar l.solt_ginmar  Monarchy Military Oneparty Multiparty Other lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(Monarchy Military Oneparty Multiparty Other, lag (3 3)) iv(lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*) robust
estimates store ht1e2
xtabond2 l1nsolt_ginet solt_ginet l.solt_ginet Monarchy Military Oneparty Multiparty Other lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(Monarchy Military Oneparty Multiparty Other, lag (2 2)) iv(lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*) robust
estimates store ht1f
xtabond2 l1nsolt_ginet solt_ginet  Monarchy Military Oneparty Multiparty Other lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(Monarchy Military Oneparty Multiparty Other, lag (3 3)) iv(lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*) robust
estimates store ht1f2
xtabond2 l1solt_redist solt_redist Monarchy Military Oneparty Multiparty Other lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(Monarchy Military Oneparty Multiparty Other, lag (2 2)) iv(lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*) robust
estimates store ht1ff
xtabond2 l1solt_redist solt_redist l.solt_redist Monarchy Military Oneparty Multiparty Other lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*, gmm(Monarchy Military Oneparty Multiparty Other, lag (3 3)) iv(lnmad_gdpc lnmad_gdpc_sq lnoilgasvalue_pc lnmad_pop lnduration _Iyear*) robust
estimates store ht1ff2
estout  ht1d ht1d2 ht1e ht1e2 ht1f2 ht1f ht1ff ht1ff2, cells(b(star fmt(%9.3f)) t(par fmt(%9.2f))) starlevels (* 0.10 ** 0.05 *** 0.01) stats (N j)style (tex)

save "C:\Users\carlhk\Dropbox\Carl_Selemon\Replication_Democracy_Inequality_1_year_panel.dta", replace
